Struts2_中文问题

1、如果有中文,表单提交就用POST方式,别用GET方式。

2、配置 <constant name="struts.i18n.encoding" value="UTF-8"></constant> 不过很多时候没用,这个是由于struts2的bug。

3、自定义过滤器,参考链接:http://www.cnblogs.com/ShawnYang/p/6576030.html。

链接: http://pan.baidu.com/s/1i4XUXaX 密码: cukq

 

posted @ 2017-04-06 13:48  流年如水烟雨随风  阅读(325)  评论(0编辑  收藏  举报