Earlier I asked if it was possible to get the original request url in the form login page in Spring Security 2. Turns out that actually won\'t help me, what I need is for th
I guess you need to use spring-security-redirect. Essentially, if your url is of the form /login.html?spring-security-redirect=/secure.html, spring security will automagically redirect to secure.html on successful login.
As of spring 3.1.x this no longer works out-of-the-box. You'll need to add:
authentication-success-handler-ref="simpleUrlAuthenticationSuccessHandler"
...to your