struts2乱码

来源:互联网 发布:服务器数据被删 编辑:程序博客网 时间:2024/04/29 15:31

在struts.xml的<struts>标签下中加入:<constant name="struts.i18n.encoding" value="GB18030"/>

如果还不行,就看看web.xml中的配置顺序,编码配置在前,filter配置在后。


原创粉丝点击