<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c"%>
<%@ page session="false"%>
<html>
<head>
<title>My Custom login</title>
</head>
<body>
	<h1>Mi custom login</h1>
	<h2>This has been tailored</h2>
	<form name='loginForm'
		action="<c:url value='j_spring_security_check' />" method='POST'>

		<table>
			<tr>
				<td>Username:</td>
				<td><input type='text' name='username' value=''></td>
			</tr>
			<tr>
				<td>Password:</td>
				<td><input type='password' name='password' /></td>
			</tr>
			<tr>
				<td colspan='2'><input name="submit" type="submit"
					value="submit" /></td>
			</tr>
		</table>

		<input type="hidden" name="${_csrf.parameterName}"
			value="${_csrf.token}" />

	</form>
	<p>
		<a href="<c:url value="/public" />">Go to public</a>
	</p>
	<p>
		<a href="<c:url value="/admin" />">Go to Admin</a>
	</p>
	<p>
		<a href="<c:url value="/j_spring_security_logout" />"> Logout</a>
	</p>

</body>
</html>
