struts2 <sx:autocompleter>中文乱码解决

struts2 <sx:autocompleter>中文乱码解决

由于<sx:autocompleter>是get提交方法 我们只需要将提交的参数改下编码就可以了

name = new String(parentName.getBytes("ISO-8859-1"), "utf-8");

猜你喜欢

转载自zhuleishitou.iteye.com/blog/1057784