dcsimg
Switching the locale(language) of an application via a button on a page.
1 posts in topic
Flat View  Flat View
TOPIC ACTIONS:
 

Posted By:   Chris_Lawson
Posted On:   Thursday, January 24, 2002 07:28 PM

How can you change the locale of an application via a button on a web page. I am using struts and don't want the user to have to change their language from the browser (e.g. Tools-Internet Options-Languages in IE).

I want the user to be able to toggle languages from a button! This toggling only needs to be held throughout the lifecycle of the user's session. When the session ends the application will automatically use the browsers default language when a page is requested.

Re: Switching the locale(language) of an application via a button on a page.

Posted By:   Ted_Husted  
Posted On:   Monday, January 28, 2002 12:48 PM

Struts places a locale object in the application scope,
and it's just a matter of changing that.


David has a nice example in his sample Validator
application
.


HTH - Ted

About | Sitemap | Contact