> Date: Wed, 16 Jun 2004 16:50:17 +0200 > From: bojke <[EMAIL PROTECTED]> > To: Struts Users Mailing List > <[EMAIL PROTECTED]>, > [EMAIL PROTECTED] > Subject: How do I put a JSP via a DispatchAction > class into a tile? > > I understand how to put a static page into a tile > ... > <tiles:insert page="layout.jsp" flush="true"> > <tiles:put name="header" value="header.jsp" /> > ... > </tiles:insert> > > .... but how do I put a dymanic page ... that is, a > JSP via a > DispatchAction class into a tile? When I use the > action path from > struts-config.xml (i.e. "main.do"), It does not > work.
Have you looked into making a Tiles Controller for the definition? Page 15 of tilesAdvancedFeatures.pdf offers this code: http://www.lifl.fr/~dumoulin/tiles/tilesAdvancedFeatures.pdf http://tinyurl.com/2snxm " <tiles:insert page="layout.jsp" controllerUrl="myAssociatedAction.do” > <tiles:put name="title" value="Test controller set in insert" /> <tiles:put name="header" value="header.jsp" /> <tiles:put name="body" value="body.jsp" /> </tiles:insert> Struts Action declaration: <action path="/myAssociatedAction" type="org.apache.struts.example.tiles.MyAssociatedAction"> </action> " Once you're inside of the Action, you can use the appropriate forward. __________________________________ Do you Yahoo!? Yahoo! Mail Address AutoComplete - You start. We finish. http://promotions.yahoo.com/new_mail --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]