DemoController:
1 |
|
LoginController:
1 |
|
login.jsp:
1 | <c:if test="${param.error != null}"> |
In Spring Security system, if the log in step fails, there will be a param error
in the link, like:http://localhost:8080/showMyLoginPage?error
. So jstl can be used to check if the log in fails and show different pages.