Thanks. Could you share that code ? It would be useful and much appreciated. Thanks again.
--- On Wed, 3/24/10, Zoran Avtarovski <zo...@sparecreative.com> wrote: From: Zoran Avtarovski <zo...@sparecreative.com> Subject: Re: [Struts 2.1.8.1] Internationalization: how to remain in the current page ? To: "Struts Users Mailing List" <user@struts.apache.org>, "Celinio Fernandes" <cel...@yahoo.com> Date: Wednesday, March 24, 2010, 3:42 PM I wrote a small custom tag which builds the link with the existing action and parameters. This way it just reloads the page. I also included a parameter that wouldn¹t allow the change (a jQuery dialog would give the user feed back) to take place if there might me an issue with system integrity for example submitting a form twice. Z. > > hi, > I have a quick and basic question. > Regarding internationalization, whenever a user clicks on a link with a flag, > i want to change the locale (language) > of the web application. > That works well with the i18n interceptor. > However i always redirect the user to the home page (home.jsp) when i do that > because that is how i have setup the input result : > <action name="changeLanguage" class="ServicesAction" > method="changeLocale"> > <result name="input">/home/home.jsp</result> > </action> > > My JSP looks like this : > <s:url id="url" action="changeLanguage.action"> > <s:param name="request_locale">fr</s:param> > </s:url> > <s:a href="%{url}" theme="xhtml"><img > src="<%=request.getContextPath()%>/images/flag_fr.png" /></s:a> > > So my question is : > how do you specify the current page in the input result name ? > so that the user stays on the current page when he changes languages. > Thanks for helping. > >