It's not a secret anymore!*
The moose likes Struts and the fly likes Struts 2 i18n problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Java 8 in Action this week in the Java 8 forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2 i18n problem" Watch "Struts 2 i18n problem" New topic
Author

Struts 2 i18n problem

debraj mallick
Ranch Hand

Joined: Mar 08, 2011
Posts: 188

Hi all,

I am trying to implement i18n into my project, below is the code
in struts.xml

in jsp pages

global.properties

global.properties

my problem is when i click to change my language, the language is changed but i come to login.jsp, please suggest me how can i return to the page where i was before,
also how can i store the local information about a user ( in database), so that whenever the user comes (or login) he/she don't have to set the language.
debraj mallick
Ranch Hand

Joined: Mar 08, 2011
Posts: 188

I have solve the problem, action in s:url should be changed on every jsp page like action="login" or action="processCheckin"

so when i click the link to change language, i am not coming to login.jsp (every time)
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Struts 2 i18n problem
 
Similar Threads
Localization with Struts2 help, not persisting to any other pages
Struts 2 - i18n Chinese localization issue
validation problem.
Problem With I18n feature of Struts2
struts2 properties file reload