其实我们在Struts2基础(七):防止表单重复提交时对错误信息的处理已经用过国际化了
jsp:
<s:text name="item.username">
struts2配置文件:
<constant name="struts.custom.i18n.resource" value="路径"></constant>
在对应路径下简历资源文件:
(1).resource.properties
(2).resource_en_US.properties
(3).resource_zh_CN.properties
在对应的properties中写相应的key和value