with the following tiles-def, I can forward to layout.main and everything is fine:
definition name="layout.main" path="/layoutMain.jsp"> <put name="header" value="header.jsp" /> <put name="app" value="layout.app" /> <put name="footer" value="footer.jsp" /> </definition> <definition name="layout.app" path="/layoutApp.jsp"> <put name="mainMenu" value="menu.main" /> <put name="subMenu" value="subMenu.jsp" /> <put name="body" value="welcome.jsp" /> </definition> <!-- Menu bar definition --> <definition name="menu.main" path="/menu.jsp" > <putList name="items" > <add value="Item 1" /> <add value="Item 2" /> <add value="Item 3" /> </putList> </definition> I then modify the tiles-def so that in layout.main app = "logon.jsp" where logon.jsp submit is associated with a struts action. In the struts action I set the layout.main app = "layout.app" ComponentDefinition layout = TilesUtil.getDefinition("layout.main", request, this.servlet.getServletContext()); layout.put("app", "layout.app"); and forward to "layout.main". So basically after the action everything should be the same as my original setup. However, I get the following error on the forward <Jun 20, 2003 1:16:00 PM EDT> <Error> <HTTP> <Included resource or file "/netl-c ommons/layout.app" not found from requested resource "/netl-commons/layoutMain.j sp".> layoutMain.jsp is not changed during my update and looks like <TABLE border="1"> <TR><TD COLSPAN="2"><tiles:insert attribute="header"/></TD></TR> <TR><TD COLSPAN="2"><tiles:insert attribute="app" /> </TD></TR> <TR><TD COLSPAN="2"><tiles:insert attribute="footer"/></TD></TR> </TABLE> Any idea why layoutMain.jsp could load layout.app in the original, but can't when I programatically put it into layout.main? I noticed that the put method doesn't have type as an argument for specifying "string", "page", "definition", so I hope that isn't it. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]