commit | 2a286780e5860c46eba882a1650cb13f28822227 | [log] [tgz] |
---|---|---|
author | timveil <dev-null@apache.org> | Mon Mar 31 19:32:41 2008 +0000 |
committer | timveil <dev-null@apache.org> | Mon Mar 31 19:32:41 2008 +0000 |
tree | 527671b31cb2e6504e2ccd95fdaf589739ea4c7e | |
parent | b293d64c279495b963c0ef2bbcbaca15dc377572 [diff] |
displaying principal name on sampleIndex git-svn-id: https://svn.apache.org/repos/asf/incubator/jsecurity/trunk@710855 13f79535-47bb-0310-9956-ffa450edef68
diff --git a/samples/spring/resources/sampleIndex.jsp b/samples/spring/resources/sampleIndex.jsp index e70b6ba..6ec1a2b 100644 --- a/samples/spring/resources/sampleIndex.jsp +++ b/samples/spring/resources/sampleIndex.jsp
@@ -10,7 +10,7 @@ <div id="contentBox"> <img src="<c:url value="/logo.png"/>" style="margin-top:20px; border:0"/><br/> - <h3>You have successfully logged in.</h3> + <h3>You have successfully logged in as <jsecurity:principal />.</h3> <p style="font-weight: bold;" > <jsecurity:hasRole name="role1">You have role 1.<br/></jsecurity:hasRole>
diff --git a/samples/spring/webroot/WEB-INF/sample-servlet.xml b/samples/spring/webroot/WEB-INF/sample-servlet.xml index a6b1a6f..6d080b7 100644 --- a/samples/spring/webroot/WEB-INF/sample-servlet.xml +++ b/samples/spring/webroot/WEB-INF/sample-servlet.xml
@@ -14,6 +14,7 @@ <prop key="jsecurity.jnlp">jnlpController</prop> <prop key="login">loginController</prop> <prop key="logout">logoutController</prop> + <prop key="unauthorized">loginController</prop> </props> </property> </bean>