HttpSession session=request.getSession();
session.setAttribute("online",user); //当前的登录用户名
session.setAttribute("quanxian",flag); //当前用户的权限

response.sendRedirect("mainindex2.jsp?name="+user+""); //用户的跳转

response.sendRedirect("error.jsp");

posted on 2015-07-17 12:08  lypzxy  阅读(169)  评论(0编辑  收藏  举报