JSP页面JS函数:
function aLink(num){
var v = document.getElementById("comName").value;
window.location.href = = "${pageContext.request.contextPath }/queryResultByPage.action?pagenum="+num+"&comName="+encodeURI(encodeURI(v));
}
Action:
//java : 字符解码
linename = java.net.URLDecoder.decode(ServletActionContext.getRequest().getParameter("comName") , "UTF-8");
this.setComName(linename);
OK!