struts2配置文件中url传递参数中文乱码处理
2014-05-21 09:50
274 查看
配置文件
[html] view
plaincopy
<action name="sort*" class="sortManage" method="{1}">
<result name="*" type="redirect">/admin/linkSort/sortManage.jsp?mss=${mss}</result>
</action>
解决办法
[html] view
plaincopy
try {
mss=URLEncoder.encode(mss, "UTF-8");
System.out.println(mss);
} catch (UnsupportedEncodingException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
[html] view
plaincopy
<action name="sort*" class="sortManage" method="{1}">
<result name="*" type="redirect">/admin/linkSort/sortManage.jsp?mss=${mss}</result>
</action>
解决办法
[html] view
plaincopy
try {
mss=URLEncoder.encode(mss, "UTF-8");
System.out.println(mss);
} catch (UnsupportedEncodingException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
相关文章推荐
- struts2配置文件中url传递参数中文乱码处理
- Struts2配置文件中redirect传递中文参数乱码的解决办法!
- 通过URL传递中文参数的乱码处理
- Struts2 URL传递中文参数乱码问题
- jsp页面间跳转 url传递中文参数乱码 以及后续细节处理
- Url传递参数和接收参数时的中文乱码处理
- Struts2 URL传递中文参数乱码问题
- jsp的url传递中文参数乱码解决方案,linux测试可用
- 处理URL传递中文乱码问题Pthill转载
- javascript通过url向jsp页面传递中文参数乱码解决方法
- js传递中文参数的url到asp(jscript)解释得到的中文参数为乱码的解决方法
- URL传递中文参数乱码问题
- struts2 Get 方式(如链接)传递中文参数避免中文乱码的写法
- js、URL传递含有中文参数时的乱码问题解决
- ASP.NET中url传递中文的解决方案,传递参数为汉字时出现乱码等问题
- js传递url中文乱码处理
- Struts2 配置文件传递参数
- 处理URL传递中文乱码问题
- URL传递中文参数中乱码问题的解决方案
- 备忘录:javascript通过url向jsp页面传递中文参数乱码解决方法