I read the paper http://www.browsermedia.com/devcorner/whitepapers/tiles201.jsp
which explains how to add attributes into a tile of a definition then it invokes the page. Unfortunatly all I want to do is replace the page that the layout uses to render the layout, without the calling page having to care about it. Humpf! -----Original Message----- From: David G. Friedman [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 08, 2005 3:36 PM To: Struts Users Mailing List Subject: RE: [Tiles] Ray, If Xinsheng [mike] Huang's suggestion about using the JSP ($) dollar sign notation doesn't work, I'd suggest looking at giving your template a tiles controller so you can set the navi attribute to some object and scope. That way the controller can specify the insert automatically before the tile is rendered and without having to put code into every action, just that one tile's controller class. Regards, David -----Original Message----- From: Ray Madigan [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 08, 2005 5:18 PM To: Struts Users Mailing List Subject: RE: [Tiles] I have a fairly simple situation where a set of pages are used throughout the application. Based on a set of crriteria known about the user, I want the page to use a set of common tiles to fill some parts of the page, like the header of the page. Other parts of the page are filled with specific tiles relative to what the page is attempting to show. Instead of each of the pages that use the layout setting the attribute, I thought if it was computed in the layout, I would save some management of these entries. -----Original Message----- From: David G. Friedman [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 08, 2005 1:58 PM To: Struts Users Mailing List Subject: RE: [Tiles] Ray, What architectural problems prevent you from either using a TilesAction, instead of a regular action, or a tiles controller to look those things up and set them for you so the page doesn't need to be 'that smart?' Regards, David -----Original Message----- From: Ray Madigan [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 08, 2005 5:01 PM To: Struts Users Mailing List Subject: [Tiles] I have beat this situation to death without coming up with an answer. I want to create a tile layout that includes a composed tile in the layout definition. Any suggestions would be appreciated It needs to look like <table border="0" width="100%" cellspacing="5"> <tr><td colspan="2"> <tiles:insert attribute="header" /> </td> </tr> <tr><td width="140" valign="top"> ** <tiles:insert page='/src/${Foo.answer}/nav.jsp'/> OR <c:set var='navi' value='/src/${Foo.answer}/nav.jsp'/> ** <!-- <c:out value='${navi}'/> outputs the correct page --> ** <tiles:insert attribute='navi'/> ** <!-- navi is in the wrong scope? -> </td> <td valign="top" align="left"> <tiles:insert attribute='body' /> </td> </tr> <tr><td colspan="2"> <tiles:insert attribute="footer" /> </td> </tr> </table> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]