• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Using Tiles with JSF (no struts)

 
Paul Smiley
Ranch Hand
Posts: 245
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Using the struts 1.2.6 and jsf 1.1. With struts 1.1, I could get the org.apache.struts.tiles.TilesServlet during startup after the Faces Servlet and all was fine. But with this latest version of struts/tiles, it chokes on the following in the web.xml:

<servlet>
<servlet-name>Faces Servlet</servlet-name>
<servlet-class>javax.faces.webapp.FacesServlet</servlet-class>
<load-on-startup>1</load-on-startup>
</servlet>

<servlet>
<servlet-name>TilesServet</servlet-name>
<servlet-class>org.apache.struts.tiles.TilesServlet</servlet-class>
<init-param>
<param-name>definitions-config</param-name>
<param-value>/WEB-INF/tiles-definitions-clf.xml,/WEB-INF/tiles-defs.xml</param-value>
</init-param>
<init-param>
<param-name>definitions-parser-validate</param-name>
<param-value>true</param-value>
</init-param>
<init-param>
<param-name>definitions-debug</param-name>
<param-value>2</param-value>
</init-param>

<load-on-startup>2</load-on-startup>
</servlet>

The error is:

org.apache.struts.tiles.TilesServlet
java.lang.ClassNotFoundException: org.apache.struts.tiles.TilesServlet

And of course the struts.jar for 1.2.6 does not have a TilesServlet. I read that the plugin must now be used and put into the struts-config.xml. (With the 1.1 version, I didn't need a struts-config.xml)

Does anyone know the proper way of integrating the current versions of struts and faces? Should I look at MyFaces, since it is now taken over by Apache? I also read about a struts-faces.jar inplementation library, but am finding very little documentation about it.

Thanks for your help!

Paul
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic