tags:

views:

165

answers:

1

Spring security has a nice feature, it remembers the url of request resource and redirect users to that resource after authentication is successful. But I want users always redirected to some other page, just after user logs in. How is it done?

+1  A: 

In your spring-security configuration use following:

<http>
        <form-login default-target-url='/some/other/page' always-use-default-target="true"/>
</http>
Pavel Rodionov