aspose file tools*
The moose likes JSF and the fly likes Using Tiles with JSF (no struts) Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of EJB 3 in Action this week in the EJB and other Java EE Technologies forum!
JavaRanch » Java Forums » Java » JSF
Bookmark "Using Tiles with JSF (no struts)" Watch "Using Tiles with JSF (no struts)" New topic
Author

Using Tiles with JSF (no struts)

Paul Smiley
Ranch Hand

Joined: Jun 02, 2000
Posts: 244
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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Using Tiles with JSF (no struts)
 
Similar Threads
SUN's JSF Impl. (Not MyFaces) with Tiles
panelNavigation2 and tree2 not working inside tiles application
TilesServlet not found.
Cannot find FacesContext
Someone out there! Help with tiles-def.xml