You change the language using

<fmt:setLocale value='en'/> for English.
then you need the resource bundles for resource_en.properties that fmt looks
up

For example
<fmt:setBundle basename='Foo'/>

needs file Foo_en.properties in the WEB-INF/classes directory of your
webapp.

For your application you would use a <c:choose tag to switch on the local
and setLocale appropriatly.

Hope this helps

-----Original Message-----
From: Miren Urkijo [mailto:[EMAIL PROTECTED]
Sent: Sunday, 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
----- Original Message -----
From: "Danny Lee" <[EMAIL PROTECTED]>
To: <user@struts.apache.org>
Sent: Sunday, November 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
>
>
>
> Miren Urkijo schrieb:
>> HEllo y havo one struts aplicaicon.
>> if into the borwser i change the locale, into the browser properties, my
>> application load the properties files well.
>> i am thinking for making onw struts action for changing the language,
>> thelocale but i dont knows how to change it.
>> can anybody says me how must i make it?
>> thanks
>
>
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]
>
>
>



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to