struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From markus.platt...@ehp.net
Subject Re: internationalisation
Date Thu, 28 Feb 2002 14:23:43 GMT
Hi Damien,

it's rather simple - struts does this for you.

The only thing you have to considere about is "how to change the 
language", because struts internationalization is based on a Locale
stored in the Session context (Attributename: Action.LOCALE_KEY).

And don't forget to set the locale=true parameter in your web.xml file. 

At first struts tries to detect the proper local from the Request data and 
set's it to the Session Attribute mentioned above if it is not already 
set.

hope it helps

Markus 
 

Besuchen Sie uns auf der CeBIT 2002, Hannover, 
vom 13.3.-20.3.2002 in Halle 18 EG, Stand A24/55!




Struts Newsgroup (@Basebeans.com) <struts
28.02.2002 14:40
Please respond to "Struts Users Mailing List"

 
        To:     struts-user@jakarta.apache.org
        cc: 
        Subject:        internationalisation


Subject: internationalisation
From: "Damien Wavrant" <dwavrant@norsys.fr>
 ===
how to internationalized an application using struts, like errors messages
per example ?
Is it possible to load dynamicaly a different
ApplicationRessource.properties (ApplicationRessource_FR.properties,
ApplicationRessources_US.properties) when user change the language ?

Thank



--
To unsubscribe, e-mail:   <mailto:struts-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:struts-user-help@jakarta.apache.org>




Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message