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

Changing Locales problem

java voyager

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,, 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



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:
subject: Changing Locales problem
It's not a secret anymore!