See Action.setLocale Quoting Philip Mark Donaghy <[EMAIL PROTECTED]>:
> > --- 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 -- Kris Schneider <mailto:[EMAIL PROTECTED]> D.O.Tech <http://www.dotech.com/> --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]