the example were right, you click on addCustomer.jsp, call action onclick and send the parameter . In example it was quoted
To change the default locale, you just need to declared a "request_locale" parameter, set your prefer language code and pass to an Action class. In Struts 2 the com.opensymphony.xwork2.interceptor.I18nInterceptor interceptor, which declared in the struts-default.xml, will hijack your Action class and handle the locale stuff accordingly
so you need to call action return success and on sucess return it to the addcustomer.jsp.. which will work.
peter wong ka chon
Joined: Jul 28, 2011
I have an idea like pass the current page (page="user") as parameter to LocaleAction and the LocaleAction will redirect to the respective page.
I had solved it using the above idea with static mapping on each jsp and lookup using LocaleAction then based on the param return the appropriate string result. Any better idea?
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com
subject: Struts2 Localization redirect to current page