struts2中表单乱码处理
1.在struts.xml中加入<constant name="struts.i18n.encoding" value="UTF-8" />
2.或者 在struts2 -core-2.0.6.jar 包中路径为struts2 -core-2.0.6
\org\apache\struts2 有一个default.properties 文件把
struts.i18n.encoding = GBK 改为 struts.i18n.encoding = UTF-8