GET形式传中文参数给Struts2 Action时出现乱码

GET方式传中文参数给Struts2 Action时出现乱码在tomcat的server.xml加上 URIEncodingUTF-8?如下:??Con

GET方式传中文参数给Struts2 Action时出现乱码

在tomcat的server.xml加上 URIEncoding="UTF-8"

?

如下:

?

?

<Connector port="8080" protocol="HTTP/1.1"?

? ? ? ? ? ? ? ?connectionTimeout="20000"?

? ? ? ? ? ? ? ?redirectPort="8443" URIEncoding="UTF-8"/>