Files
yacos/YACOSWeb/WebContent/WEB-INF/jsp/login.jsp

46 lines
994 B
Plaintext

<%@ include file="/WEB-INF/decorators/include.jsp"%>
<%@ page import="org.acegisecurity.context.SecurityContextHolder" %>
<html>
<head></head>
<body>
<form action="<c:url value='j_acegi_security_check'/>" method="POST">
<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><input type="checkbox" name="_acegi_security_remember_me" /></td>
<td>Se souvenir de moi</td>
</tr>
<tr>
<td><input name="submit" type="submit" /></td>
<td><input name="reset" type="reset" /></td>
</tr>
</table>
</form>
<authz:authorize ifNotGranted="ROLE_ANONYMOUS">
<a href="j_acegi_logout">Logout</a>
</authz:authorize>
<authz:authorize ifAllGranted="ROLE_AUTHOR">
<h1>Welcome: <%= SecurityContextHolder.getContext().getAuthentication().getName() %></h1>
</authz:authorize>
</body>
</html>