• Post Reply Bookmark Topic Watch Topic
  • New Topic

another question about i18n?

 
Dairmon Lee
Ranch Hand
Posts: 30
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear all,
Another newbie question:
How do you achive internationalization in Struts?
I understand that you should have different resources like:
MessageResources.properties
MessageResources_cn.properties
But how do you load them to the web app.?
I put following two parts in my web.xml, but it seems only the one later loaded will always be picked up?!
<init-param>
<param-name>application</param-name>
<param-value>test.struts.MessageResources</param-value>
</init-param>
<init-param>
<param-name>application</param-name>
<param-value>test.struts.MessageResources_cn</param-value>
</init-param>
Please help me out! thanks in advance!
 
Ravi Veera
Ranch Hand
Posts: 127
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Here's a link which may be helpful.
I recollect seeing an example with English and French files but I just can't remember right now.
HTH
Ravi,
P.S It can be a bet frustrating to get things done in struts initially. I wish there was a simple HOW-TO Site to get me kick started.
It keeps getting better though.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!