----- Original Message ---- > From: Mike Baranski <[email protected]> > To: Struts Users Mailing List <[email protected]> > Sent: Tue, October 20, 2009 11:19:25 AM > Subject: Show jsps from different directories based on "theme" > > So, I want to ship 2 versions (or more) of my views. > > The will be in > /pages/jsps/theme1/x.jsp > and > /pages/jsps/theme2/x.jsp > > I want the user to be allowed to set the theme, and my result tag in the xml > be something like: > > /pages/jsps/{selected_theme}/x.jsp > > Can I do that? > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [email protected] > For additional commands, e-mail: [email protected]
Mike, If you're using S2, you could always return the 'theme1' or 'theme2' result in your action class and have the mapping for it. Or you could just use Tiles? I don't know about site mesh since I've looked into in depth. Regards, Tommy --------------------------------------------------------------------- To unsubscribe, e-mail: [email protected] For additional commands, e-mail: [email protected]

