this

Struts2.0 国际化

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">

 

posted @ 2013-10-23 00:03  湖南司马懿  Views(113)  Comments(0Edit  收藏  举报