*_zh_CN.properties 国际化资源文件 struts 防乱码等

国际化资源文件在struts中须要写以下代码:

<!-- 设置Web应用的默认Locale为zh_CN -->
 <constant name="struts.locale" value="zh_CN" />
 <!-- 设置Struts2应用的国际化资源文件,多个文件中间可用逗号分隔 -->
 <constant name="struts.custom.i18n.resources" value="PaaS"/>

  <!--解决乱码    -->

  <constant name="struts.i18n.encoding" value="UTF-8" />

 

posted @ 2015-05-29 11:49  Junger  阅读(370)  评论(0编辑  收藏  举报