if (用户已登录) {
return invocation.invoke();
} else {
return "Log";
}
}
}
public class LimitInterceptor implements Interceptor {
/**
*
*/
private static final long serialVersionUID = 1L;
public void destroy() {
}
public void init() {
}
public String intercept(ActionInvocation invocation) throws Exception {
if (用户已登录) {
return invocation.invoke();
} else {
return "Log";