日期:2014-05-16  浏览次数:20327 次

action传递js

?

HttpServletResponse response = ServletActionContext.getResponse(); 
response.setContentType("text/html;charset=utf-8"); 
PrintWriter out = response.getWriter();
out.print("<script> alert('The selected item is processing'); 
window.location.href =a.jsp?state=" + state + "';</script>");