This week's book giveaway is in the Performance forum. We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line! See this thread for details.
But now, i get only the default messages... if I set with setLocale(Locale.GERMAN) (at Action-Class), it doesn't change anything... I've testet some cases... Default value of getLocale() is de_DE, if I delete the default message in my db, so I get an exeption, that struts misses message....
It's saved as:
I've generated debug output... Perhaps that could be tell anybody anything:
I don't understand my fault...
I thank you very Much!
posted 11 years ago
you must store the locale in session. you must do something like this: request.getSession().setAttribute(org.apache.struts.Globals.LOCALE_KEY,new Locale("du") );
MessageResource will read from the session Locale..