js 代码
window.location.href = "${ctx}/userController/update.do? dgName="+
encodeURI(encodeURI(val));
后台代码
String dgName= request.getAttribute("dgName");
String string = URLDecoder.decode(dgName, "utf-8");