Hi All,
appreciate any help here ...This is what I have done in trying to 
show strings in the selected language:
 - I have various /WEB-INF/classes/ApplicationResources.properties
files, for example APplicationResoruces_ja.properties
 - in struts-config.xml, I have:
   <message-resources parameter="ApplicationResources"/>
 - in web.xml I have a filter:

<filter>
<filter-name>encodingFilter</filter-name>
<filter-class>org.springframework.web.filter.CharacterEncodingFilter</filter-class>
<init-param>
<param-name>encoding</param-name>
<param-value>UTF-8</param-value>
</init-param>
<init-param>
<param-name>forceEncoding</param-name>
<param-value>true</param-value>
</init-param>
</filter>

 - for each JSP file, I have:
   <%@ page language="java" pageEncoding="UTF-8"
contentType="text/html;charset=UTF-8" %>
   <html:html locale="true">
     ......

    <bean:message key="button.add"/>

   </html:html>

 - a post login filter to set user's locale based on language setting:
   session.setAttribute("org.apache.struts.action.LOCALE", .....)


but the button.add always show English. Anything I missed out ?

I am using Spring framework with Struts 1.2.7, and Tiles.

thanks !
lixin

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to