您的位置:首页 > 编程语言 > Java开发

Struts2.0 国际化

2013-10-23 00:03 197 查看
1.加载 全局国际化资源文件

加载全局国际化资源文件,其实就是配置常量 。

不论是struts.properties ,还是struts.xml ,只需要配置常量 : struts.custom.il8n.resources .

eg :

(1) struts.properties

struts.custom.il8n.resources = customResources

(2) struts.xml

<constant name="struts.custom.il8n.resources" value="customResources">
内容来自用户分享和网络整理,不保证内容的准确性,如有侵权内容,可联系管理员处理 点击这里给我发消息
标签: