July 2018
Intermediate to advanced
268 pages
7h 36m
English
Create a new page, namely login.jsp in the src/main/webapp/WEB-INF/view folder. The main section of the page, containing the username, password, and rememberme fields, is as shown in the following code snippet:
<form action='<spring:url value="/loginProc"/>' method="post"> <table> <tr> <td>Username</td> <td><input type="text" name="username"></td> </tr> <tr> <td>Password</td> <td><input type="password" name="password"></td> </tr> <tr> <td><input type="checkbox" name="rememberme"></td> <td>Remember me</td> </tr> <tr> <td><button type="submit">Login</button></td> </tr> </table></form>
Make sure that you name the remember me checkbox the same as you specified in the Spring Security configuration.
Read now
Unlock full access