+ -
当前位置:首页 → 问答吧 → struts2 + prototype.js ajax post请求出现乱码

struts2 + prototype.js ajax post请求出现乱码

时间:2011-05-25

来源:互联网

struts2 + prototype.js ajax post请求出现乱码
我要是在url 中加入参数的话就不会出现乱码,但是我要是这样用的话parameters: Form.serialize(form)就会出现乱码,我的 tomcat的配置配了URIEncoding="gbk"我的struts2的配置也配为gbk,求高手解决!

作者: snepajj   发布时间: 2011-05-25

你的参数要编码吧。

作者: licip   发布时间: 2011-05-26