You need the TilesRequestProcessor and ActionComponentServlet with Struts1.1. ActionComponentServlet takes in charge Tiles initialization. TilesRequestProcessor takes in charge Struts "forward" catching.
You can have your own request processor extending the Tiles one, allowing functionalities from both. Hope this help, Cedric Udo Walker wrote: > Hi, > > can I mix > > <servlet-class>org.apache.struts.tiles.ActionComponentServlet</servlet-class> > > and my own RequestProcessor with Tiles and Struts 1.1? > > Do I have the full functionality of Tiles while keeping the > functionality of my own RequestProcessor? > Or, questioned the other way round: Do I need the TilesRequestProcessor > for Struts 1.1? > > Thanks, > Udo. > > "Wellie W. Chao" wrote: > > > > What version of struts are you using? I'm using 1.1 beta 1, and the forward > > to tiles definition feature works just fine. My action tags look just like > > what you specified. > > > > You may need to check and make sure you have the proper settings in web.xml. > > In web.xml, you should have: > > > > <servlet-name>action</servlet-name> > > <servlet-class>org.apache.struts.tiles.ActionComponentServlet</servlet-class > > > > > > > Also, in struts-config.xml, you should have: > > > > <controller processorClass="org.apache.struts.tiles.TilesRequestProcessor" > > nocache="true"/> > > > > (You can change the nocache if you want) > > > > -----Original Message----- > > From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]] > > Sent: Monday, April 08, 2002 5:25 PM > > To: [EMAIL PROTECTED] > > Subject: tiles question > > > > Hi, > > > > Is it possible to call a tiles layout definition from an action tag in my > > struts-config.xml file? > > > > Here's the tag in my struts-config.xml: > > > > <action path="/resources" > > forward="site.resources.page"/> > > > > Here's the definition in my tiles-defs.xml: > > > > <definition name="site.resources.page" extends="site.mainLayout" > > > <put name="body" value="/tiles/resources.jsp" /> > > </definition> > > > > When I try to invoke this action forward I get an exception: > > > > java.lang.IllegalArgumentException: Path site.services.page does not start > > with a "/" character > > > > The forward tag is expecting a value like '/resources.jsp', not a tiles > > layout. Is what I'm trying to do possible? > > > > Thanks, > > Eric. > > > > ********************************************************************** > > This message, including any attachments, contains confidential information > > intended for a specific individual and purpose, and is protected by law. If > > you are not the intended recipient, please contact sender immediately by > > reply e-mail and destroy all copies. You are hereby notified that any > > disclosure, copying, or distribution of this message, or the taking of any > > action based on it, is strictly prohibited. > > TIAA-CREF > > ********************************************************************** > > > > -- > > To unsubscribe, e-mail: > > <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: > > <mailto:[EMAIL PROTECTED]> > > > > -- > > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>