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>