Hi!

I do have some problems with the messages displayed via <bean:message
key="myKey"/>. The documentation says, that if no Locale is specified the
default locale from the Action class will be taken. When i ask for the
Locale in the jsp with the following commands, i get the locale which i set
during the logon procedure, but the messages are taken from the default
MessageResource...
-----------------
Locale<br>
Language:<%=((java.util.Locale)
session.getAttribute(org.apache.struts.action.Action.LOCALE_KEY)).getLanguag
e()%>
<br>
Country:<%=((java.util.Locale)
session.getAttribute(org.apache.struts.action.Action.LOCALE_KEY)).getCountry
()%>            
-----------------
the result is:
Locale
Language: de
Country: DE

but ApplicationResources.properties is taken and not
ApplicationResources_de.properties ?

Any help or suggestions ?

Thanx
Andre

Reply via email to