这是自定义的拦截器
public class IsLoginInterceptor extends MethodFilterInterceptor{
@Override
protected String doIntercept(ActionInvocation invocation) throws Exception {
Map session=invocation.getInvocationContext().getSession();
Leaguer lea=(Leaguer)session.get("lea");
if(lea==null){
return Action.LOGIN;
}
return invocation.invoke();
}
}
这是strust配置
/jsp2/login.jsp
regist,login,passwordReset
求大神解决一下