Hi! I got a weird problem with my application (only in production), the problem is intermittent and I wasn't able to reproduce it yet.
Sometimes the messages returned by bean:message aren't correct (english when it should be french and vice versa). I did a test in a jsp for a specific key and the value returned was in english for a french locale ??? What is weird is that it doesn't apply to all messages on the page, some messages are in french and the others in english ??? It's like at some point the Struts messages cache got corrupted... I have two properties file : - application.properties (default french) - application_en.properties (english) A default locale is set in my init servlet : Locale.setDefault(Locale.FRENCH); I never experienced the same behaviour on my development workstation (XP), the production server runs Linux (SUSE)... I reloaded the properties files live on the production with this code in a jsp (ugly hack) : MessageResourcesFactory factory =MessageResourcesFactory.createFactory(); MessageResources resources =factory.createResources("resources.application"); application.setAttribute("org.apache.struts.action.MESSAGE", resources); And everything went back to normal (until next time)... I would appreciate any suggestions! Regards, Christian --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]