• Post Reply Bookmark Topic Watch Topic
  • New Topic

Changing Locales problem  RSS feed

java voyager
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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?
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!