Hi, 

I try to follow the Struts2 tutorial and I run with Java1.6 on Tomcat6. I've 
had a pair of issues. The recent one is with internationalization using 
locales. For my Register.java action, I have two properties files 
Register.properties and Register_es.properties for the default English and 
Spanish respectively, each containing the labels for the chosen local language. 

In my index.jsp, I have two links defined for each locale, as follows. But 
clicking on the Spanish one reads from the English properties and the labels 
are therefore in English anyway. Even when I deleted the English alternative, 
it continued to show in English. I cleaned the cache in Firefox, cleared the 
contain of the English Register.properties and deleted the application map in 
Tomcat, (I even manually deleted the war file from my project in Eclipse before 
rebuilding with Ant) but no change: 

<s:url action="registerInput" var="registerInputLink" >
 <s:param name="request_locale">en</s:param>
</s:url>
<p><a href="${registerInputLink}">Please register</a> for our prize drawing.</p>

<h3>Registro español</h3>
<s:url action="registerInput" var="registerInputLinkES">
    <s:param name="request_locale">es</s:param>
</s:url>
<p><a href="${registerInputLinkES}">Por favor, regístrese</a> para nuestro 
sorteo</p>

Best regards
/// Sam Cyrus


---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscr...@struts.apache.org
For additional commands, e-mail: user-h...@struts.apache.org

Reply via email to