87,907
社区成员
发帖
与我相关
我的任务
分享
public String out() throws IOException{
HttpServletRequest request=ServletActionContext.getRequest();
request.setCharacterEncoding("utf-8");
HttpServletResponse response= ServletActionContext.getResponse();
response.setCharacterEncoding("gbk");
PrintWriter out=ServletActionContext.getResponse().getWriter();
ActionContext.getContext().getSession().remove("user_login");
ActionContext.getContext().getSession().clear();
out.write("<script language='javascript'>parent.window.document.location.location='/HaiMen/login.jsp';</script> ");
return null;
}
out.print("<script>alert('请先登陆');parent.window.document.location='/HaiMen/login.jsp';</script>");