Hi Jan
What do you mean with "sharing user chosen locale"?
Does your user access thru a common login application?
If it's something like that, then you might share your Locale putting it in
session
Session.setAttribute("myLocale", myLocale);

Then retrieving it in the other applications with
(Locale)request.getSession().getAttribute("myLocale);

This usually works pretty well since Session is a serializable object.
Not sure it would work in a clustered environment though

-----Messaggio originale-----
Da: Jan Normann Nielsen [mailto:[EMAIL PROTECTED] 
Inviato: luned́ 17 maggio 2004 10.42
A: Struts Users Mailing List
Oggetto: Re: Sharing what I've learned: locale switching

None None wrote:

> Because this might be helpful to others, and because I probably would 
> have spent another couple of hours figuring it out on my own without 
> the help of some people on this lsit, I wanted to give back as much as 
> I could.  So, here's a consolidated bit of info I've learned about 
> switching language in your Struts apps...
>
> What I have is a file manager application, more or less just for me to 
> learn Struts.  I wanted to have the ability to switch languages 
> on-the-fly.  To do this, I've done the following:

Does anyone know how to make the Locale settings global for all web 
applications deployed in a web container? Is it at all possible? I have 
four web applications deployed in Jetty and I want to have them share 
the user chosen locale.

Best regards,
Jan Nielsen

---------------------------------------------------------------------
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