diff --git a/samples/tutorial/pom.xml b/samples/tutorial/pom.xml index e8cd85f993..762d1dd5ca 100644 --- a/samples/tutorial/pom.xml +++ b/samples/tutorial/pom.xml @@ -42,7 +42,7 @@ javax.servlet jstl - 1.0 + 1.2 runtime diff --git a/samples/tutorial/src/main/webapp/WEB-INF/jsp/listAccounts.jsp b/samples/tutorial/src/main/webapp/WEB-INF/jsp/listAccounts.jsp index 77ff7c1e1d..07ca81dd20 100644 --- a/samples/tutorial/src/main/webapp/WEB-INF/jsp/listAccounts.jsp +++ b/samples/tutorial/src/main/webapp/WEB-INF/jsp/listAccounts.jsp @@ -1,4 +1,4 @@ -<%@ taglib prefix="c" uri="http://java.sun.com/jstl/core" %> +<%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>

Accounts

diff --git a/samples/tutorial/src/main/webapp/WEB-INF/web.xml b/samples/tutorial/src/main/webapp/WEB-INF/web.xml index 4291fb48d2..77403adc67 100644 --- a/samples/tutorial/src/main/webapp/WEB-INF/web.xml +++ b/samples/tutorial/src/main/webapp/WEB-INF/web.xml @@ -1,26 +1,24 @@ - - - + Spring Security Tutorial Application - - contextConfigLocation - classpath:applicationContext-business.xml + classpath:applicationContext-business.xml /WEB-INF/applicationContext-security-ns.xml @@ -51,20 +49,20 @@ org.springframework.security.ui.session.HttpSessionEventPublisher - - - - bank - org.springframework.web.servlet.DispatcherServlet - 1 - - - - bank - *.html - + + + + bank + org.springframework.web.servlet.DispatcherServlet + 1 + + + + bank + *.html + index.jsp diff --git a/samples/tutorial/src/main/webapp/secure/extreme/index.jsp b/samples/tutorial/src/main/webapp/secure/extreme/index.jsp index f7df8f9a80..93f7a17cfc 100644 --- a/samples/tutorial/src/main/webapp/secure/extreme/index.jsp +++ b/samples/tutorial/src/main/webapp/secure/extreme/index.jsp @@ -1,8 +1,14 @@ +<%@ taglib prefix="authz" uri="http://www.springframework.org/security/tags" %> +

VERY Secure Page

This is a protected page. You can only see me if you are a supervisor. + + You have "ROLE_SUPERVISOR" (this text is surrounded by <authz:authorize> tags). + +

Home

Logout