File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Internationalization not working beyond one page (Struts 1)

 
Agnieszka Nocek
Greenhorn
Posts: 1
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All,

I've been trying to do language selection in Struts 1 (yes, i have to use those). However, after sucessfully changing the language on the login page, after logging in the language just reverts to the default. Can you tell me what i'm doing wrong here? What i need to do is select the language for the whole portal from the login page. Here's what I've done so far:

1) I have 3 property files with translated messages:
default ApplicationResources.properties
english ApplicationResources_en.properties
russian ApplicationResources_ru.properties

2) Entry to struts-config.xml


3) LanguageSelectAction class


4) Links in login.jsp:




Any idea what i'm doing wrong here? Any advice is appreciated! I might be making some obvious beginner error, since i've only been using struts since yesterday:P

 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic