浏览代码

Updates to heavyduty sample

Luke Taylor 17 年之前
父节点
当前提交
26d2b03667

+ 2 - 2
sandbox/heavyduty/pom.xml

@@ -137,7 +137,7 @@
                 <artifactId>maven-jetty-plugin</artifactId>
                 <version>6.1.7</version>
                 <configuration>
-                    <contextPath>/tutorial</contextPath>
+                    <contextPath>/heavyduty</contextPath>
                     <connectors>
                         <connector implementation="org.mortbay.jetty.nio.SelectChannelConnector">
                             <port>8080</port>
@@ -159,7 +159,7 @@
         </plugins>
     </build>
     <properties>        
-        <spring.version>2.5.3</spring.version>
+        <spring.version>2.5.4</spring.version>
         <spring.security.version>2.0.1-SNAPSHOT</spring.security.version>
     </properties>
 

+ 1 - 1
sandbox/heavyduty/src/main/webapp/WEB-INF/appContext-security.xml

@@ -30,7 +30,7 @@
 
 
         <!-- All of this is unnecessary if auto-config="true" -->
-        <form-login />
+        <form-login default-target-url="/secure/index.jsp" always-use-default-target="true"/>
         <anonymous />
         <!-- http-basic / -->
         <logout />

+ 3 - 1
sandbox/heavyduty/src/main/webapp/secure/index.jsp

@@ -27,7 +27,9 @@ or if you've authenticated this session.
 <tr>
 <td>&lt;sec:authentication property='principal.accountNonLocked' /&gt;</td><td><sec:authentication property="principal.accountNonLocked"/></td>
 </tr>
-</table>
+</table>
+
+Saved Request: <%= session.getAttribute("SPRING_SECURITY_SAVED_REQUEST_KEY") %>
 
 
 <p><a href="../">Home</a>