关于修改浏览器的locale:
(页面代码)
<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>
在struts.xml中:
<action name="registerInput" class="org.apache.struts.register.action.Register" method="input" >
<result name="input">/register.jsp</result>
</action>
其中,Register类继承了com.opensymphony.xwork2.ActionSupport类。