--- Frers Michael <[EMAIL PROTECTED]> wrote: > Hello > > just a simple question > > how can set the actual used local? > > i have two propertie files: > > application.properties > application_de.properties > application_en.properties > > struts takes as default application_de.properties > > how can i make it that a user can click a > GreatBritain flag and then the application is > displayed in english?
You should take a look at the struts-validator webapp. Here is the basic code... locale = new java.util.Locale(language, country); or locale = new java.util.Locale(language, ""); and session.setAttribute(Globals.LOCALE_KEY, locale); where language is en and country is UK That should do it. Phil > > Thanks for any help > > Michael __________________________________ Do you Yahoo!? Exclusive Video Premiere - Britney Spears http://launch.yahoo.com/promos/britneyspears/ --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]