I use locale in my application, it works fine, but the problem is that when I go to the main page (index.jsp), when I click on a specific language on different pages of the application, it goes to index.jsp, how can I change mapping, so when I select a specific language on a page, does it stay on that page and change the language of the application? let me know if you need to download any other part of the code.
Struts.xml
<action name="locale" class="com.myapp.struts.LocaleAction">
<result name="SUCCESS" type="tiles">baseLayout</result>
</action>
Act
public class LocaleAction extends ActionSupport{
@Override
public String execute(){
return "SUCCESS";
}
}
user2071377
source
share