If you use Spring-Security 3.0 or higher, implementing your own AuthenticationSuccessHandler, this is the way:
<sec:form-login ... authentication-success-handler-ref="successHandler"/>
...
<bean id="successHandler" class="de.....MySpecialAuthenticationSuccessHandler">
Then it MySpecialAuthenticationSuccessHandlercan distribute one of the default handlers, for example SavedRequestAwareAuthenticationSuccessHandler, although they are not very convenient for inheritance.
Robin source
share