Re: How to change locale inside an Action method

2009-02-01 Thread Ignacio de Córdoba
ion. I am already using the request_locale i18n interceptor aproach in other circumstances, when I know in advance I want to change the locale. It's perfect for that but maybe not for the case exposed. Ignacio -- View this message in context: http://www.nabble.com/How-to-change-locale-inside-a

Re: How to change locale inside an Action method

2009-02-01 Thread Wes Wannemacher
On Sunday 01 February 2009 12:10:00 Ignacio de Córdoba wrote: > OK. Thanks again... after reading some other docs I'll be doing: > > ActionContext.getContext().setLocale(locale); > session.put(com.opensymphony.xwork2.interceptor.I18nInterceptor.DEFAULT_SES >SION_ATTRIBUTE,locale); session.put(Confi

Re: How to change locale inside an Action method

2009-02-01 Thread Ignacio de Córdoba
truts. session.put("javax.servlet.jsp.jstl.fmt.locale.session", locale);//Just to be really sure (I hope this will "really" change locale) Ignacio -- View this message in context: http://www.nabble.com/How-to-change-locale-inside-an-Action-method-tp21776908p21777642.html Sent from

Re: How to change locale inside an Action method

2009-02-01 Thread Wes Wannemacher
On Sunday 01 February 2009 12:02:19 Ignacio de Córdoba wrote: > Thanks for your reply, > I had read the i18n docs you refer but still find no info about changing > the session locale inside an Action. > Anyway, after reading the source of the Interceptor, I understand that > doing: > > session.put(

Re: How to change locale inside an Action method

2009-02-01 Thread Ignacio de Córdoba
should change the locale in the session. Do you believe that's right and nothing extra needs to be done? thanks, Ignacio -- View this message in context: http://www.nabble.com/How-to-change-locale-inside-an-Action-method-tp21776908p21777515.html Sent from the Struts - User mailing list archi

Re: How to change locale inside an Action method

2009-02-01 Thread Wes Wannemacher
On Sunday 01 February 2009 11:11:33 Ignacio de Córdoba wrote: > Hi there, > I've been searching through struts2 docs and old threads here but I've > found no way of changing current locale from inside an action. I know I can > pass a parameter in the request, and maybe other ways to change it... bu

How to change locale inside an Action method

2009-02-01 Thread Ignacio de Córdoba
ent locale from inside the action. I used to do setLocale(...) but that method doesn't seem to be implemented in ActionSupport. Thanks for any help, Ignacio -- View this message in context: http://www.nabble.com/How-to-change-locale-inside-an-Action-method-tp21776908p21776908.html Sent