• 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

urgent pls help.. problem loadning application_resources

 
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi there,
we are facing a serious problem.. but dont know what is the reason.
our application runs on jboss 4.0.2..
we are using struts..
we have configured application_resources to support two languages..
the struts locale_key is also set as follows.
for german
session.setAttribute(org.apache.struts.Globals.LOCALE_KEY,new java.util.Locale("de","DE"));
for english
session.setAttribute(org.apache.struts.Globals.LOCALE_KEY,new java.util.Locale("en","US"));

but sometimes even if english is set for somr pages german words are taken from application resources..
this is happening after we have configured virtual hosts for the server..
now we have two domain names for the same application..
and the conflict is showing for only one domain..
please help us to solve the problem
thanks in advance
 
Ranch Hand
Posts: 415
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi
can you let me know the name of the resource bundle you have used for english resources . Ensure that u append _en to the english recource bundle else it will pick up the server locale bundle ..ie. german bundle
 
Jiji Cherian
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi sreenath,
Thanks for ur response..
the file names are ApplicationResources_de.properties and ApplicationResources.properties..
Its not working only for a few pages and not always..
 
sreenath reddy
Ranch Hand
Posts: 415
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Hi

Make that ApplicationResources.properties as ApplicationeResources_en.properties ........else the earlier resource bundle will not be taken in English Locale and it will always pick ur server locale bundle

and one more thing u r saying that its coming in only few pages , that might be the problem with browser cache also . then see such that u place cache removal code on the top of all ur jsps so that browser will stop caching
 
Jiji Cherian
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Once again thanks Sreenath for responding..
Cold u tell me more about cache removal codes..
If possible please give me an example..
Thanks in advance..
 
Willie Smits increased rainfall 25% in three years by planting trees. Tiny ad:
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic