struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Miguel Angel Medina Lopez" <>
Subject Problem with locale
Date Tue, 25 Mar 2003 19:36:47 GMT
Hi all:

I have a problem when I want to change the locale of my struts application. By defauly, when
I get the Locale, with the next code:

log.debug("The locale is "+locale.toString());

the result is  "The locale is en_US". Now I want to change the locale to spanish with the

Locale l=new Locale("es","ES");

and the out from the logger is "The locale is es_ES", however, in the JSPs, the output take
the messages from the english (_en) resource bundle. The default resource is in spanish. 

Any suggestion? Thank you in advance.

Miguel Ángel Medina López
Logic Factory:
Granada - España

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