|
View:
New views
5 Messages
—
Rating Filter:
Alert me
|
|
|
Selecting a jsp according to localeHi all,
I want to show a system requirements page according to the web page's locale. Can I use the tiles-defs.xml to do it or I need to write code in a jsp? Thanks --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
|
|
Re: Selecting a jsp according to localeDimitris Mouchritsas wrote:
> Hi all, > I want to show a system requirements page according to the web page's > locale. > Can I use the tiles-defs.xml to do it or I need to write code in a jsp? > Thanks I'm not sure what you want to achieve. If you just want to localize the page, you can do so using the I18N facilities provided by Struts. If you actually need to render a different JSP per locale for some reason, it will be more involved. Either way, the specifics depend on which version of Struts you are using. Try posting more details of exactly what it is you need to do, and what environment you are working in (Struts version, etc.). L. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
|
|
Re: Selecting a jsp according to localeLaurie Harper wrote:
> Dimitris Mouchritsas wrote: >> Hi all, >> I want to show a system requirements page according to the web page's >> locale. >> Can I use the tiles-defs.xml to do it or I need to write code in a jsp? >> Thanks > > I'm not sure what you want to achieve. If you just want to localize > the page, you can do so using the I18N facilities provided by Struts. > If you actually need to render a different JSP per locale for some > reason, it will be more involved. Either way, the specifics depend on > which version of Struts you are using. > > Try posting more details of exactly what it is you need to do, and > what environment you are working in (Struts version, etc.). > > L. > My version is Struts 1.2.4, running on OC4J 10.1.2.0.2 (which is pretty old). What I actually want to do is to display a system requirements page according to the user's locale which has been set before hand. So I suppose it would be easier to have 3 different jsp's? --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
|
|
Re: Selecting a jsp according to locale2008/5/13 Dimitris Mouchritsas <dimitris.mouchritsas@...>:
> Hi all, > I want to show a system requirements page according to the web page's > locale. > Can I use the tiles-defs.xml to do it or I need to write code in a jsp? You can use the Tiles-included locale support. You need simply to add the locale code in the file name. For example, if you have "tiles-defs.xml", you need to create a new "tiles-defs_it_IT.xml" for Italian locale, defining only the different definitions. HTH Antonio --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
|
|
Re: Selecting a jsp according to localeAntonio Petrelli wrote:
> 2008/5/13 Dimitris Mouchritsas <dimitris.mouchritsas@...>: > >> Hi all, >> I want to show a system requirements page according to the web page's >> locale. >> Can I use the tiles-defs.xml to do it or I need to write code in a jsp? >> > > You can use the Tiles-included locale support. You need simply to add > the locale code in the file name. For example, if you have > "tiles-defs.xml", you need to create a new "tiles-defs_it_IT.xml" for > Italian locale, defining only the different definitions. > > HTH > Antonio > Ahh, thanks, now it works. I guess I wasn't careful when reading the article and I had named the file: tiles-defs-it.xml. Now with the underscore it works great! Thanks once again :) Dimitris --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscribe@... For additional commands, e-mail: user-help@... |
| Free Forum Powered by Nabble | Forum Help |