org.mentawai.filter
Interface RedirectAfterLogin
public interface RedirectAfterLogin
A marker interface to indicate that an action can receive a redirection after a login.
An action should implement this interface if it wants to receive a redirection after the user logs in.
Redirect After Login is basically this:
- The user tries to access action /MyAction.mtw
- The user is not logged, so he is taken to the login page.
- After a successful login, instead of going to the first page (welcome page), it is taken to the /MyAction.mtw action.
For this to happen, MyAction has to implement this marker interface.
- Author:
- Sergio Oliveira
shouldRedirect
boolean shouldRedirect(String innerAction)
Copyright © 2012. All Rights Reserved.