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
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
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
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(
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
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
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
7 matches
Mail list logo