Struts2通过url传递参数到Action出现乱码解决办法客户端将url编码:url encodeURI(encodeURI(你的url))A
Struts2通过url传递参数到Action出现乱码解决办法
客户端将url编码:
url = encodeURI(encodeURI(你的url));
Action中对参数解码:
String new = URLDecoder.decode(old, "utf-8");
Struts2通过url传递参数到Action出现乱码解决办法
客户端将url编码:
url = encodeURI(encodeURI(你的url));
Action中对参数解码:
String new = URLDecoder.decode(old, "utf-8");