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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to