Acegi security / Login-Logout and remember ok (next step: dynamical menu and user info when authentified)
This commit is contained in:
10
YACOSWeb/WebContent/WEB-INF/jsp/errors/403error.jsp
Normal file
10
YACOSWeb/WebContent/WEB-INF/jsp/errors/403error.jsp
Normal file
@@ -0,0 +1,10 @@
|
||||
<%@ include file="/WEB-INF/decorators/include.jsp"%>
|
||||
|
||||
<html>
|
||||
<head></head>
|
||||
<body>
|
||||
|
||||
File doesn't exist.
|
||||
|
||||
</body>
|
||||
</html>
|
||||
10
YACOSWeb/WebContent/WEB-INF/jsp/errors/404error.jsp
Normal file
10
YACOSWeb/WebContent/WEB-INF/jsp/errors/404error.jsp
Normal file
@@ -0,0 +1,10 @@
|
||||
<%@ include file="/WEB-INF/decorators/include.jsp"%>
|
||||
|
||||
<html>
|
||||
<head></head>
|
||||
<body>
|
||||
|
||||
Error : page not found
|
||||
|
||||
</body>
|
||||
</html>
|
||||
@@ -30,9 +30,13 @@
|
||||
|
||||
</table>
|
||||
</form>
|
||||
<authz:authentication operation="username"></authz:authentication>
|
||||
<authz:authorize ifAllGranted="ROLE_AUTHOR">
|
||||
|
||||
<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>
|
||||
|
||||
|
||||
Reference in New Issue
Block a user