I'm a little bit puzzled about <bean:message> behaviour.
Let's suppose the following situation
ApplicationResources.properties
key1=defaultKey1
key2=defaultKey2
ApplicationResources_de.properties
key1=germanKey1
ApplicationResources_it.properties
key1=italianKey1
key2=italianKey2
To switch the locale i do the following:
request.getSession().setAttribute( Action.LOCALE_KEY, myLocale );
Let's suppose myLocale is the German locale ( new Locale( "de", "DE") )
<bean:message key="key1"> works fine
<bean:message key="key2"> returns the italianKey2
I was expecting the string 'defaultKey2', why do i get the italian !??!
Another question is: if i create a locale like new Locale ("en", "EN"),
what's the output of <bean:message key="key2"> ?
my answer would be defaultKey2 but of course i'm wrong as it returns the
italian one !
I will end up to code my personal bean:message tag !!!
Bye
IVan.
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>