You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Forest79 <ma...@gmail.com> on 2008/02/12 16:34:00 UTC

Re: Struts 2 changing locale from an action

Your actions must extends ActionSupport (or implements LocaleProvider). Than
you must to implement this method:

	public Locale getLocale() {
		
		return [user logged locale];
	}




Jim Young wrote:
> 
> Can anybody tell us how to change the locale from an action in Struts 2. 
> We have users that log-on and in their profile is the language that they
> wish the web site to be displayed in.  I have not be able to find out how
> to change the locale.  All the examples for changing the locale for Struts
> 2 seem to be from a jsp and using a link.  This will not work for us.
>  
> Any ideas? 
> 
> 

-- 
View this message in context: http://www.nabble.com/Struts-2-changing-locale-from-an-action-tp10209761p15434479.html
Sent from the Struts - User mailing list archive at Nabble.com.


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