Hello,
I need to switch between to tiles layout depending on the context. in fact, our EAR is used in two different applications, but these are quite the same ones. the EAR is deployed on two different servers with different server configurations. what is very different between the 2 applications is the layout (and the database, but it doesn't matter here, since it is jsut a matter of confiuring the server) one of my colleague suggested to double every forward and every tile (and every return of the Actions). each tile would redirect on the same JSP, but will inherit from different layout. ############ BEGIN CODE 1 ############ // in the Action if (condition) { return theMapping.findForward("success"); } else { return theMapping.findForward("success2"); } <!-- from struts-config.xml file --> <action path="something" ... > <forward name="success" path="tilesSuccess" redirect="false" /> <forward name="success2" path="tilesSuccess2" redirect="false" /> </action> <!-- from tiles-defs.xml file --> <definition name="tilesSuccess" extends="layoutOne"> <put name="workingArea" value="myJsp.jsp"/> </definition> <definition name="tilesSuccess2" extends="layoutTwo"> <put name="workingArea" value="myJsp.jsp"/> </definition> ############ END CODE 1 ############ But I think it's dirty. we have to multiply the code. I want to be back to : ############ BEGIN CODE 2 ############ // in the Action return theMapping.findForward("success"); <!-- from struts-config.xml file --> <action path="something" ... > <forward name="success" path="tilesSuccess" redirect="false" /> </action> <!-- from tiles-defs.xml file --> <definition name="tilesSuccess" extends="layout"> <put name="workingArea" value="myJsp.jsp"/> </definition> ############ END CODE 2 ############ I insist on the fact that the layouts are VERY different (they don't need the same JSPs), so it's not a CSS problem, but the working area will be the same. How could I do that ? I tryied to play in java with the PluginConfig (theMapping.getModuleConfig().findPlugInConfigs()), but it doens't work. -- Jean-Philippe Caruana <http://perso.enstimac.fr/~caruana/> ======================================================= Ce message et toutes les pieces jointes (ci-apres le "message") sont confidentiels et etablis a l'intention exclusive de ses destinataires. Toute utilisation ou diffusion non autorisee est interdite. Tout message electronique est susceptible d'alteration. La SOCIETE GENERALE et ses filiales declinent toute responsabilite au titre de ce message s'il a ete altere, deforme ou falsifie. ======================================================= This message and any attachments (the "message") are confidential and intended solely for the addressees. Any unauthorized use or dissemination is prohibited. E-mails are susceptible to alteration. Neither SOCIETE GENERALE nor any of its subsidiaries or affiliates shall be liable for the message if altered, changed or falsified. ======================================================= --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]