Win a copy of Design for the Mind this week in the Design forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Struts 2 i18n problem

 
debraj mallick
Ranch Hand
Posts: 188
Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 188
Hibernate Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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)
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic