You're right, you can. If you change the attribute in session, it changes
the Locale for all pages just like doing setLocale in struts...

thanks!

Lisa

-----Original Message-----
From: Adam Hardy [mailto:[EMAIL PROTECTED]]
Sent: 14 May 2002 13:40
To: Struts Users Mailing List
Subject: Re: changing locale from jsp


If you can do that:

Locale locale = (Locale)
           getServletContext().getAttribute(Action.LOCALE_KEY);

Then can't you also do:

getServletContext().setAttribute(Action.LOCALE_KEY, new Locale("en"));



Lisa van Gelder wrote:

>Actually, maybe the question should be how do I set the "LOCALE_KEY" for my
>session?
>
>I can then change the locale stored under "LOCALE_KEY" myself.
>
>Lisa
>
>--
>To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
>For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>
>
>
>  
>



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

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

Reply via email to