-
+
-
-
-
-
-
-
- |
-
- |
-
+
+
+
+
+
+
+ |
+
+ |
+
-
-
-
-
-
+<%@ include file="/WEB-INF/jsp/include.jsp" %>
+
+
+
+
+
+
+
+
-
">Manage + + diff --git a/samples/contacts/src/main/webapp/common/WEB-INF/jsp/deleted.jsp b/samples/contacts/src/main/webapp/WEB-INF/jsp/deleted.jsp similarity index 100% rename from samples/contacts/src/main/webapp/common/WEB-INF/jsp/deleted.jsp rename to samples/contacts/src/main/webapp/WEB-INF/jsp/deleted.jsp diff --git a/samples/contacts/src/main/webapp/common/WEB-INF/jsp/hello.jsp b/samples/contacts/src/main/webapp/WEB-INF/jsp/hello.jsp similarity index 97% rename from samples/contacts/src/main/webapp/common/WEB-INF/jsp/hello.jsp rename to samples/contacts/src/main/webapp/WEB-INF/jsp/hello.jsp index 2a40c618f9..4f018bcc74 100644 --- a/samples/contacts/src/main/webapp/common/WEB-INF/jsp/hello.jsp +++ b/samples/contacts/src/main/webapp/WEB-INF/jsp/hello.jsp @@ -15,13 +15,13 @@ layer bean has a number of secured (protected) and public (unprotected) methods.
/secure
URI path is protected
- by Acegi Security from principals not holding the
+ by Acegi Security from principals not holding the
ROLE_USER
granted authority.-<%= request.getAttribute(AccessDeniedHandlerImpl.ACEGI_SECURITY_ACCESS_DENIED_EXCEPTION_KEY)%> - -
-
-<% Authentication auth = SecurityContextHolder.getContext().getAuthentication();
- if (auth != null) { %>
- Authentication object as a String: <%= auth.toString() %>
-<% } %>
+<%@ page import="org.acegisecurity.context.SecurityContextHolder" %>
+<%@ page import="org.acegisecurity.Authentication" %>
+<%@ page import="org.acegisecurity.ui.AccessDeniedHandlerImpl" %>
+
+
+<%= request.getAttribute(AccessDeniedHandlerImpl.ACEGI_SECURITY_ACCESS_DENIED_EXCEPTION_KEY)%> + +
+
+<% Authentication auth = SecurityContextHolder.getContext().getAuthentication();
+ if (auth != null) { %>
+ Authentication object as a String: <%= auth.toString() %>
+<% } %>
diff --git a/samples/contacts/src/main/webapp/filter/acegilogin.jsp b/samples/contacts/src/main/webapp/acegilogin.jsp
similarity index 88%
rename from samples/contacts/src/main/webapp/filter/acegilogin.jsp
rename to samples/contacts/src/main/webapp/acegilogin.jsp
index f3d67e6e74..87e2298cad 100644
--- a/samples/contacts/src/main/webapp/filter/acegilogin.jsp
+++ b/samples/contacts/src/main/webapp/acegilogin.jsp
@@ -21,8 +21,8 @@
username bob, password wombat
username jane, password wombat
-
- <%-- this form-login-page form is also used as the
+
+ <%-- this form-login-page form is also used as the
form-error-page to ask for a login again.
--%>