Java Reference
In-Depth Information
<td><input type=
'text'
name=
'ItemDesc'
/></td>
</tr>
<tr><td colspan=
'2'
><input value=
"Save"
name=
"Save"
type=
"submit"
/></td></tr>
</table>
</form>
</body>
</html>
Since Spring Security is installed, any unauthorized or unauthenticated access will
redirect the user to the login page. Listing 7-7 shows the login page.
Listing 7-7.
/WEB-INF/jsp/login.jsp
<%@ taglib prefix="form" uri="
http://www.springframework.org/tags/form"
%>
<html>
<head>
<title>Login</title>
</head>
<body>
<form action="j_spring_security_check" method="POST">
<form:errors path="*" cssClass="errorBox" />
<table>
<tr>
<td>User:</td>
<td><input type='text' name='j_username' />
</td>
</tr>
<tr>
<td>Password:</td>
<td><input type='password' name='j_password' /></td>
</tr>
<tr><td colspan='2'><input value="Sign In" type="submit" /></td></tr>
</table>
</form>
</body>
</html>
