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>");

你可能感兴趣的:(html,jsp)