当前位置: 代码迷 >> JavaScript >> action传送js
  详细解决方案

action传送js

热度:186   发布时间:2012-10-29 10:03:53.0
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>");
  相关解决方案