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 Changing Locales problem Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Frameworks » Struts
Bookmark "Changing Locales problem" Watch "Changing Locales problem" New topic
Author

Changing Locales problem

java voyager
Greenhorn

Joined: Apr 14, 2009
Posts: 2
Hi everybody ,

I am struggling with locales. I want to have locales independent of the system or browsers locales in my small application. I mean if my system has default=EN, I want to run it for example in DE.

I have ApplicationResources.properties, ApplicationResources_en.properties, ApplicationResources_de.properties. And i want to load the _de resource as default, as my system is in EN.

I tryed using of PropertyMessageResourcesFactory, but without any success. Here the code about it, that i had done:

In web.xml


The DCMessageResourceFactory.java


The DCMessageResource.java


I also tryed and in the struts-config.xml to put factory here:


Using Hibernate, Struts 1.3.10 and Tomcat 5.5
But no success. Where am i wrong?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Changing Locales problem
 
Similar Threads
Exception in Running Struts in Tomcat
Could not get the connection in struts database application
Not able to initialize the properties file
Multiple form-beans aren't recognized
File not found error