, November 20, 2005 9:19 AM
To: Struts Users Mailing List
Subject: Re: help for changing the language, locale
it runsbut i have one problem.
in my struts pages i am working with fmt and jstl and this doesn't run with
these (jstl, fmt).
which is the solution?
can anybody helps me?
thanks
- Ori
You have to do a getLocale() in your ActionForm and then
use:
in your JSP ;)
Then you gonna be lucky ;)
Cheers,
Danny
Miren Urkijo schrieb:
it runsbut i have one problem.
in my struts pages i am working with fmt and jstl and this doesn't run
with these (jstl, fmt).
which is the solution?
mber 20, 2005 2:24 PM
Subject: Re: help for changing the language, locale
Well,
that's really easy, just do:
"request.getSession().setAttribute(Globals.LOCALE_KEY, new
locale(languageCode));"
in your action, where languageCode is the locale you wish to use.
Cheers
Danny
Mir
I don't know how you could do this. But perhaps you can create a struts
action that loads the correct locale properties file. Just an opinion.
regards,
- Original Message -
From: "Miren Urkijo" <[EMAIL PROTECTED]>
To: "Struts Users Mailing List"
Sent: Sunday, November 20, 2005 11:36 A
Note that there is a LocaleAction specifically for doing this, so you
don't even have to remember how :) It appears in 1.2.4 at least, but
I'm not sure when it was first introduced.
Frank
Danny Lee wrote:
Well,
that's really easy, just do:
"request.getSession().setAttribute(Globals.LOCALE_
Well,
that's really easy, just do:
"request.getSession().setAttribute(Globals.LOCALE_KEY, new
locale(languageCode));"
in your action, where languageCode is the locale you wish to use.
Cheers
Danny
Miren Urkijo schrieb:
HEllo y havo one struts aplicaicon.
if into the borwser i change the
6 matches
Mail list logo