I have an app using Spring Security 3.0.x. There I have a custom AuthenticationProvider:
public class A
Use the below tags for your customize authentication in jsp page.
Username/Password entered is incorrect.
Your account is disabled, please contact administrator.
Database connection is down, try after sometime.
Also include the below tag library for properly working
<%@ taglib prefix="fn" uri="http://java.sun.com/jsp/jstl/functions" %>
<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
<%@ taglib uri="http://www.springframework.org/security/tags" prefix="sec"%>
...