aspose 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 | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Frameworks » Struts
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://aspose.com/file-tools
 
subject: Internationalization not working beyond one page (Struts 1)