首页 诗词 字典 板报 句子 名言 友答 励志 学校 网站地图
当前位置: 首页 > 教程频道 > 其他教程 > 开源软件 >

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

2012-08-14 
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"/>

热点排行