Im very new to this spring-framework and to spring security. But i got stucked on this...
If a user log in, they are forced to a target URL, in this case the root, "/". By the property "defaultTargetUrl".
Code:<bean id="customAuthenticationProcessingFilter" class="org.springframework.security.ui.webapp.AuthenticationProcessingFilter"> <security:custom-filter position="AUTHENTICATION_PROCESSING_FILTER" /> <property name="defaultTargetUrl" value="/" /> <property name="authenticationManager" ref="authenticationManager" /> <property name="authenticationFailureUrl" value="/login_failed.html" /> <property name="targetUrlResolver" ref="roleBasedTargetUrlResolver" /> <property name="rememberMeServices" ref="rememberMeServices" /> <property name="invalidateSessionOnSuccessfulAuthentication" value="true"/> </bean>
But I want this senario:
The user is somewhere on the site. And log in and stil is on same page as before he/she logged in. The user "stay" on the same page.
I need any help I can get. Please.



