This question on Stack Overflow is very similar to your issue: http://stackoverflow.com/questions/4773063/tiles2-struts-switch-locale
The parameter name for which the i18n interceptor determines the language is configurable, I have not tried this but it may be possible to specify a session_locale parameter for which it will determine the correct language bundle. That is if you need the change to persist across pages. Then you could configure an interceptor to capture any request_locale parameters and setting session_locale to the same value. On Thu, 2011-01-27 at 19:49 +0100, Doctor John Carter wrote: > <s:url id="localeEN" namespace="/" action="locale" > <s:param > name="request_locale" >en</s:param></s:url><s:url id="localenlBE" > namespace="/" action="locale" > <s:param name="request_locale" > >nl_BE</s:param></s:url><s:url id="localeFR" namespace="/" action="locale" > > <s:param name="request_locale" >fr</s:param></s:url> > <ul><li><s:a href="%{localeEN}" >English</s:a></li><li><s:a > href="%{localenlBE}" >Nederlands</s:a></li><li><s:a href="%{localeFR}" > >Français</s:a></li></ul> > > <action name="locale" class="be.yp5.HK.action.LocaleAction"> > <result name="SUCCESS" type="redirect">/matchDays.action</result> > </action> > > ---------------------------------------- > > Subject: Re: getRequestURL and action > > From: ken.mcwilli...@aerose.com > > To: user@struts.apache.org > > Date: Thu, 27 Jan 2011 11:42:24 -0700 > > > > gives you the current url. > > > > gives you the current url with the get > > parameters. > > > > The tag also shares the above properties but is also a link. > > > > http://struts.apache.org/2.x/docs/tag-reference.html > > > > On Thu, 2011-01-27 at 18:33 +0100, Doctor John Carter wrote: > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > > Struts > > > version 2.1.8.1 > > > > > > All > > > my jsp pages include a header.jsp file. > > > > > > This > > > header file is made for the choice of the languages. > > > > > > > > > > > > > > > There > > > are 3 links with the same action > > > > > > > > > > > > > > > Th > > > problem is that I don 't want to go back to the same page for all > > > the jsp file(home page for example). I want to go back to the origin > > > pag after the user has choose his language > > > > > > > > > > > > > > > > > > > > > So > > > I would like to know how is it possible in the Struts > > > > > > > > > > > > > > > > > > > > > Thank > > > you > > > > > > > > > > > > Florent > > > --------------------------------------------------------------------- > > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > > > For additional commands, e-mail: user-h...@struts.apache.org > > > > > > > > > > > --------------------------------------------------------------------- > > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > > For additional commands, e-mail: user-h...@struts.apache.org > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: user-unsubscr...@struts.apache.org > For additional commands, e-mail: user-h...@struts.apache.org > --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org