RE: Show jsps from different directories based on "theme"

2009-10-21 Thread Mike Baranski
>> > If you're using S2, you could always return the 'theme1' or 'theme2' >result in >> your action class and have the mapping for it. >> >> That's absolutely a disgusting idea, think about 10 themes, and add to >> that user installable themes... >> >> A switch() at end of each of the action method

Re: Show jsps from different directories based on "theme"

2009-10-21 Thread Tommy Pham
- Original Message > From: Tommy Pham > To: Struts Users Mailing List > Sent: Tue, October 20, 2009 8:48:59 PM > Subject: Re: Show jsps from different directories based on "theme" > > I totally agree with you. However, I'm just giving Brian options

Re: Show jsps from different directories based on "theme"

2009-10-20 Thread Tommy Pham
- Original Message > From: Jari Fredriksson > To: user@struts.apache.org > Sent: Tue, October 20, 2009 7:31:03 PM > Subject: Re: Show jsps from different directories based on "theme" > > > > 21.10.2009 5:22, Tommy Pham kirjoitti: > > If you&

Re: Show jsps from different directories based on "theme"

2009-10-20 Thread Jari Fredriksson
20.10.2009 21:19, Mike Baranski kirjoitti: > 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

Re: Show jsps from different directories based on "theme"

2009-10-20 Thread Jari Fredriksson
21.10.2009 5:22, Tommy Pham kirjoitti: > If you're using S2, you could always return the 'theme1' or 'theme2' result > in your action class and have the mapping for it. That's absolutely a disgusting idea, think about 10 themes, and add to that user installable themes... A switch() at end of e

Re: Show jsps from different directories based on "theme"

2009-10-20 Thread Tommy Pham
- Original Message > From: Mike Baranski > To: Struts Users Mailing List > 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 >