struts2国际化

时间:2014-05-01 19:57:20   收藏:0   阅读:264

一、步骤:

1.在struts配置文件中添加说明;

2.编写配置文件

二、代码:

1、在<struts>元素中添加

<!-- 国际化配置 -->
<constant name="struts.custom.i18n.resources" value="xxx"></constant>

2.在src目录下添加国际化配置文件xxx_zh_CN.properties(中文)/xxx_en_US.properties

mamicode.com,码迷

 

 

struts2国际化,码迷,mamicode.com

评论(0
© 2014 mamicode.com 版权所有 京ICP备13008772号-2  联系我们:gaon5@hotmail.com
迷上了代码!