struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Yibing Li" <>
Subject RE: Multi-Lingual support
Date Thu, 18 Apr 2002 14:25:46 GMT
The resource files all have the same list of the keys but different contents. Right? e.g.

      <bean:message key="index.title"/>

In my resource file, there is a line of:

index.title=Testing Struts

In my chinese resource file, there is a line of:
index.title=证实 struts

So is this correct?



-----Original Message-----
From: Oliver Reflé []
Sent: Thursday, April 18, 2002 10:08 AM
To: Struts Users Mailing List;
Subject: RE: Multi-Lingual support

Have you implemented the localization on your pages correctly ??
<bean:message key="blabla"/>

Are the keys correct to your file ?


-----Original Message-----
From: Yibing Li []
Sent: Thursday, April 18, 2002 4:02 PM
Subject: Multi-Lingual support


    I thought one major advantage of using struts is its support form
We have built an application using Model 2. Since we need to extend the
application to
support 7 different languages, I would like to rewrite the application using
With my limited knowledge on struts, I was not able to do a proof of
concept. Here is
what I did:

   1. have as English property file.
   2. prepare a resource file for each language, in the case of Chinese, it
is in the same directory, with the
      translated to Chinese
   3. Set init parameter of locale to true for ActionServlet
   4. Start the server
   5. Reset the locale of a computer
   6. Browse the application

However, what I see is still in English.

   Do I miss anything? Please help.

   If you could point to some sample application to demo its multi-lingual
it would be very helpful.


Yibing Li, Ph.D.
Technical Architect
Development and Integration
GlobalNetXChange LLC
703-673-2159 (o)
571-436-5592 (c)

To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message