<%@ page language="java" contentType="text/html;charset=UTF-8"%> <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %> <%@ page import="org.springframework.security.core.AuthenticationException" %> 后台管理系统 <% AuthenticationException authenticationException = (AuthenticationException)session.getAttribute(org.springframework.security.web.WebAttributes.AUTHENTICATION_EXCEPTION); if(authenticationException != null){ request.setAttribute("loginMessage",authenticationException.getMessage()); } session.setAttribute(org.springframework.security.web.WebAttributes.AUTHENTICATION_EXCEPTION,null); %>

${loginMessage }