If you use *_EN.properties test.string = hello!! *_FR.properties test.string = allo!!

rather than lower case will work out the box, no need to specify in struts-config just in web.xml as you perhaps have done already. The internationalization is built in.

Try it out by changing your browser locale..

<bean:message key="test.string" />

Tiles defs have similar functionality.

I'll leave the question on the model to someone else..


Cheers Mark


On Monday, August 25, 2003, at 03:00 PM, [EMAIL PROTECTED] wrote:


hi all, I'm trying to build a multilingual application with struts.

I have created 4 messages ressources named
AppResources_fr.properties
AppResources_uk.properties
AppResources_de.properties
AppResources.properties

One file per country and the default(AppResources) for unknown user local.

those file will be configured in the struts-config.xml file with a
specific key for each.

depending on user local, I would like to tell to the framework
to load the corresponding Resource file.

I have two questions about that :

1 : how could I tell to the framework to load resource file
  depending on the user local

2 : if I want to display values, could I use the bean write tag.

3 : for data comming from database, what is the best pratice
  to perfom the same thing.

any suggestion would be greetly appreciated.

Meissa

L'integrite de ce message n'etant pas assuree sur internet, Natexis
Banques Populaires ne peut etre tenu responsable de
son contenu. Toute utilisation ou diffusion non autorisee est
interdite. Si vous n'etes pas destinataire de ce message, merci de le
detruire et d'avertir l'expediteur.

The integrity of this message cannot be guaranteed
on the Internet. Natexis Banques Populaires can not therefore be
considered responsible for the contents.Any unauthorized use or dissemination is prohibited.
If you are not the intended recipient of this message, then please delete it and
notify the sender.


---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



Reply via email to