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 3716e16ee0..61d2ce0473 100644 --- a/samples/tutorial/src/main/webapp/WEB-INF/jsp/listAccounts.jsp +++ b/samples/tutorial/src/main/webapp/WEB-INF/jsp/listAccounts.jsp @@ -1,5 +1,16 @@ <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + + Accounts + + +
+

Accounts

Home

@@ -28,4 +39,7 @@ -

Logout +

Logout

+
+ + diff --git a/samples/tutorial/src/main/webapp/index.jsp b/samples/tutorial/src/main/webapp/index.jsp index 09eedbb2e3..efe4989a82 100644 --- a/samples/tutorial/src/main/webapp/index.jsp +++ b/samples/tutorial/src/main/webapp/index.jsp @@ -1,7 +1,18 @@ +<%@ page session="false" %> +<%@ page contentType="text/html;charset=UTF-8" language="java" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %> -<%@page session="false" %> + + + + + + + Home Page + +

Home Page

Anyone can view this page. @@ -12,15 +23,20 @@ If you're logged in, you can list accounts.

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

+

-You can currently access "/secure" URLs. +You can currently access "/secure" URLs.

+
+

-You can currently access "/secure/extreme" URLs. +You can currently access "/secure/extreme" URLs.

+

Secure page

Extremely secure page

+
diff --git a/samples/tutorial/src/main/webapp/loggedout.jsp b/samples/tutorial/src/main/webapp/loggedout.jsp index 2a45df9a31..14063b04e1 100644 --- a/samples/tutorial/src/main/webapp/loggedout.jsp +++ b/samples/tutorial/src/main/webapp/loggedout.jsp @@ -1,14 +1,20 @@ <%@page session="false" %> <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + - -Logged Out - + + + + Logged Out + +

Logged Out

You have been logged out. Start again.

+
diff --git a/samples/tutorial/src/main/webapp/secure/extreme/index.jsp b/samples/tutorial/src/main/webapp/secure/extreme/index.jsp index b796637af7..11f29a364f 100644 --- a/samples/tutorial/src/main/webapp/secure/extreme/index.jsp +++ b/samples/tutorial/src/main/webapp/secure/extreme/index.jsp @@ -1,7 +1,16 @@ <%@ taglib prefix="authz" uri="http://www.springframework.org/security/tags" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + Secure Page + +

VERY Secure Page

This is a protected page. You can only see me if you are a supervisor. @@ -9,7 +18,8 @@ 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 +

Home

+

Logout

+
diff --git a/samples/tutorial/src/main/webapp/secure/index.jsp b/samples/tutorial/src/main/webapp/secure/index.jsp index 0b2baeddd5..e6063c64da 100644 --- a/samples/tutorial/src/main/webapp/secure/index.jsp +++ b/samples/tutorial/src/main/webapp/secure/index.jsp @@ -1,17 +1,27 @@ <%@ taglib prefix="sec" uri="http://www.springframework.org/security/tags" %> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + + + + + + Secure Page + +
+

Secure Page

This is a protected page. You can get to me if you've been remembered, or if you've authenticated this session.

- +

You are a supervisor! You can therefore see the extremely secure page.

- +

Properties obtained using <sec:authentication /> tag

@@ -32,5 +42,6 @@ or if you've authenticated this session.

Home

Logout

+ diff --git a/samples/tutorial/src/main/webapp/static/css/tutorial.css b/samples/tutorial/src/main/webapp/static/css/tutorial.css new file mode 100644 index 0000000000..4d98a2a9da --- /dev/null +++ b/samples/tutorial/src/main/webapp/static/css/tutorial.css @@ -0,0 +1,13 @@ + +body { + font-family:"Palatino Linotype","Book Antiqua",Palatino,serif; +} + +#content { + margin: 5em auto; + width: 40em; +} + +.securityHiddenUI, .securityHiddenUI * { + background-color: #ff4500; +} diff --git a/samples/tutorial/src/main/webapp/timeout.jsp b/samples/tutorial/src/main/webapp/timeout.jsp index 80a5ff5b14..e699a3b2bc 100644 --- a/samples/tutorial/src/main/webapp/timeout.jsp +++ b/samples/tutorial/src/main/webapp/timeout.jsp @@ -1,15 +1,20 @@ <%@page session="false" %> <%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> + - -Session Timeout - + + + + Session Timeout + +

Invalid Session

Your session appears to have timed out. Please start again.

+
TagValue