File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Struts and the fly likes Internationalization not working beyond one page (Struts 1) Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login


Win a copy of The Mikado Method this week in the Agile and other Processes forum!
JavaRanch » Java Forums » Frameworks » Struts
Reply Bookmark "Internationalization not working beyond one page (Struts 1)" Watch "Internationalization not working beyond one page (Struts 1)" New topic
Author

Internationalization not working beyond one page (Struts 1)

Agnieszka Nocek
Greenhorn

Joined: Aug 09, 2011
Posts: 1
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://zeroturnaround.com/jrebel - it saves me about five hours per week
 
subject: Internationalization not working beyond one page (Struts 1)
 
Similar Threads
Pass Parameter value to dipatchMethod
Newbie help using html:link action
struts internationalization problem
Struts2 Internationalization
I18N PROBLEM