logger.debug("登录失败"); request.getSession().setAttribute("lose","lose"); response.sendRedirect("login.jsp");
<% // 临时判断 if(session.getAttribute("lose")!=null){ pageContext.setAttribute("loginFail",true); session.removeAttribute("lose"); } %>
var loginFail = "${loginFail}" if(loginFail) { layer.msg("账户密码错误") }