• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Paul Clapham
  • Ron McLeod
  • Bear Bibeault
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Tim Cooke
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Stephan van Hulst
  • Jj Roberts
  • Carey Brown
  • salvin francis
  • Frits Walraven
  • Piet Souris

Struts Internationalization Issue

Posts: 13
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi there,

I've an issue with struts internationalization. Let me give you a quick description of the problem:

I need to show a country specific content on my website, which happens to be for US. Hence, I've created a resource file ' MyResource_en_US.properties'. Similarly, I've to show a different content for other countries, which I'm managing in the resource file: 'MyResources.properties'.

However, the issue is the system always looks up the content from en_US file irrespective of my country. This could possibly be because, the default locale is en_US. Is there any way to force change this default locale, so that 'MyResources.properties' is preferred for countries other than US ?

I've however, corrected the issue, by passing request_locale as parameter in the URL. But, I'd prefer it to have this configurable, rather than URL driven!

Ranch Hand
Posts: 485
Eclipse IDE Firefox Browser Linux
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
if you go through default.properties in struts-core jar file the default local configuration is

You can change the default configuration in two ways one way is override the value in struts.properties or else add constant in struts.xml file
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Please refer to the link below. This might solve your problem.


If somebody says you look familiar, tell them you are in porn. Or in these tiny ads:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic