File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Struts 2 i18n problem" Watch "Struts 2 i18n problem" New topic

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

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:
subject: Struts 2 i18n problem
It's not a secret anymore!