diff --git a/samples/tutorial/pom.xml b/samples/tutorial/pom.xml index 8558cc2482..9765285810 100644 --- a/samples/tutorial/pom.xml +++ b/samples/tutorial/pom.xml @@ -11,15 +11,25 @@ Spring Security - Tutorial sample war - - org.springframework.security - spring-security-core - ${project.version} - - - org.springframework - spring-web - + + org.springframework.security + spring-security-core + ${project.version} + + + org.springframework.security + spring-security-core-tiger + ${project.version} + + + org.springframework + spring-web + + + org.springframework + spring-webmvc + ${spring.version} + org.springframework spring-jdbc diff --git a/samples/tutorial/src/main/webapp/WEB-INF/applicationContext-security-ns.xml b/samples/tutorial/src/main/webapp/WEB-INF/applicationContext-security-ns.xml index 1c6d2466b6..2211346600 100644 --- a/samples/tutorial/src/main/webapp/WEB-INF/applicationContext-security-ns.xml +++ b/samples/tutorial/src/main/webapp/WEB-INF/applicationContext-security-ns.xml @@ -12,9 +12,15 @@ xsi:schemaLocation="http://www.springframework.org/schema/beans http://www.springframework.org/schema/beans/spring-beans-2.0.xsd http://www.springframework.org/schema/security http://www.springframework.org/schema/security/spring-security-2.0.xsd"> + + + - + + diff --git a/samples/tutorial/src/main/webapp/WEB-INF/web.xml b/samples/tutorial/src/main/webapp/WEB-INF/web.xml index 854ab51cf0..4291fb48d2 100644 --- a/samples/tutorial/src/main/webapp/WEB-INF/web.xml +++ b/samples/tutorial/src/main/webapp/WEB-INF/web.xml @@ -11,7 +11,7 @@ - Acegi Security Tutorial Application + Spring Security Tutorial Application + + bank + org.springframework.web.servlet.DispatcherServlet + 1 + + + + bank + *.html + index.jsp diff --git a/samples/tutorial/src/main/webapp/index.jsp b/samples/tutorial/src/main/webapp/index.jsp index 318c284d0e..3e382a6bf2 100644 --- a/samples/tutorial/src/main/webapp/index.jsp +++ b/samples/tutorial/src/main/webapp/index.jsp @@ -3,6 +3,9 @@

Home Page

Anyone can view this page.

+If you're logged in, you can list accounts.

+ + Your principal object is....: <%= request.getUserPrincipal() %>

Secure page