解决http的post请求乱码问题
首先在struts.xml中增加如下项:
<constant name=" struts.locale" value="UTF-8"></constant>
解决http的get请求乱码问题
打开你的tomcat安装目录在里面找conf/ server.xml,用编辑器打开这个文件,在里面增加如下项:
URIEncoding="UTF-8"
首先在struts.xml中增加如下项:
<constant name=" struts.locale" value="UTF-8"></constant>
打开你的tomcat安装目录在里面找conf/ server.xml,用编辑器打开这个文件,在里面增加如下项:
URIEncoding="UTF-8"