Hi, If found this- In struts-config.xml specify for ur web application -
<!-- ======================================================= --> <!-- Admin --> <!-- ======================================================= --> <!-- The standard administrative actions available with Tiles --> <!-- These would be either omitted or protected by security --> <!-- in a real application deployment --> <action path="/admin/tiles/reload" type="org.apache.struts.tiles.actions.ReloadDefinitionsAction"/> <action path="/admin/tiles/view" type="org.apache.struts.tiles.actions.ViewDefinitionsAction"/> I was able to reload my definitions with these. Hope it helps. Regards, Janarthan S -----Original Message----- From: Stunger, Kevin J [mailto:[EMAIL PROTECTED] Sent: Wednesday, June 30, 2004 5:01 AM To: [EMAIL PROTECTED] Subject: How to change tiles def at runtime? Hello! Has anyone ever had success changing tiles def values during runtime? I'd like to point a tiles def to a different jsp and change the title, etc. based on some value set in either the request or the session. Example: <definition name="myApplication.default" page="/template.jsp"> <put name="title" value="My Application" /> <put name="header" value="/tiles/header.default.jsp" /> <put name="sidebarLinks" value="/tiles/sidebarLinks.default.jsp" /> <put name="sidebarSpecial" value="/tiles/sidebarSpecial.default.jsp" /> <put name="mainTitle" value="My Application" /> <put name="mainBody" value="/tiles/mainBody.default.jsp" /> <put name="mainClosing" value="/tiles/mainClosing.default.jsp" /> <put name="footer" value="/tiles/footer.default.jsp" /> </definition> Changes to the below based on a conditional (note that "My" changed to "Your", all "default" is now "default2", and "/template.jsp" is now "/template2.jsp") : <definition name="myApplication.default" page="/template2.jsp"> <put name="title" value="Your Application" /> <put name="header" value="/tiles/header.default2.jsp" /> <put name="sidebarLinks" value="/tiles/sidebarLinks.default2.jsp" /> <put name="sidebarSpecial" value="/tiles/sidebarSpecial.default2.jsp" /> <put name="mainTitle" value="Your Application" /> <put name="mainBody" value="/tiles/mainBody.default2.jsp" /> <put name="mainClosing" value="/tiles/mainClosing.default2.jsp" /> <put name="footer" value="/tiles/footer.default2.jsp" /> </definition> Thanks in advance for any help!!! --Kevin --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]