struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject RE: Struts2 + I18N
Date Fri, 14 Aug 2009 15:47:37 GMT

Use struts.locale=en   in your file. Hope this works.


Balaji C R B

-----Original Message-----
From: Julien HENRY []
Sent: Friday, August 14, 2009 9:11 PM
Subject: Struts2 + I18N


In my Struts2 application I have the following language files: (contains EN)

When I start my application, the application is in French (probably because JVM default locale
is french). Then I tried to change language by appending ?request_locale=XX in the URL.

Adding ?request_locale=de works fine. All texts are in German.

Adding ?request_locale=en doesn't work. All texts are in French.

I tried to add

<constant name="struts.locale" value="en" />

to struts.xml but no luck.

How can I tell Struts that the file is English?




This email message and all attachments are  confidential and may contain information that
is privileged,  confidential or exempt from  disclosure under applicable law.  If you are
not  the intended  recipient,  you  are notified  that any dissemination, distribution or

copying  of this email  is strictly prohibited. If you have received this email in error,

please notify us immediately by return email or to and destroy

the original message.

Opinions, conclusions, and other  information in  this message that  do not relate to the

official business of SPAN, shall be understood to be neither given nor endorsed by SPAN.

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