@Override
 public void intercept(Invocation inv) {
   // TODO 自动生成的方法存根
   Controller c = inv.getController();
   Object user = c.getSessionAttr("userphone");
   if (user == null) {
     c.redirect("/dealer/login");
   } else inv.invoke();
 }
예제 #2
0
 public void intercept(ActionInvocation ai) {
   Controller cl = ai.getController();
   Object user = cl.getSessionAttr(Constants.SESSION_MEMBER);
   if (user == null) {
     cl.render("/front/test_member_login.jsp");
   } else {
     ai.invoke();
   }
 }