struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Kölbl Norbert <koel...@team-con.de>
Subject AW: Switching the locale(language)
Date Wed, 10 Jul 2002 10:33:04 GMT
You can set the Locale for the user's session in your action-class like this:

Locale locale = Locale.GERMAN;
request.getSession().setAttribute(Action.LOCALE_KEY, locale);


Hope this helps,
Norbert


> Hi everybody, I'am developping an application in three 
> languages with STUTS 1.0.2
> 
> I'd like to know how can you change the locale of an 
> application via a button on a web page.I don't want the user 
> to have to change their language from the browser (e.g. 
> Tools-Internet Options-Languages in IE) but I want the user 
> to be able to toggle languages from a button.
> 
> Thanks a lot for yours answers ( if you could give me an 
> example it would be nice)
> 
> Bye
> 
> 
> 
> ---------------------------------
> Yahoo! Mail -- Une adresse @yahoo.fr gratuite et en français !
> 

--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>


Mime
View raw message