I'm trying to implement a security model where the model of secured pages inherits from a SecureSupport. I don't know how or if I can redirect from a constructor, however. See below:
public class SecureSupport extends ActionSupport {
private Map session;
public SecureSupport throws Exception
{
session = ActionContext.getContext().getSession();
if(!session.containsKey("User"))
{
// redirect from here
}
return SUCCESS;
}