• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Changing Locales problem

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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?
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic