package com.yeshi.buwan.interceptor;
|
|
public class LoginInterceptor {
|
|
/**
|
*
|
*/
|
private static final long serialVersionUID = 1L;
|
//
|
// @Override
|
// public String intercept(ActionInvocation invocation) throws Exception {
|
// ActionContext ctx = invocation.getInvocationContext();
|
// Map<String, Object> session = ctx.getSession();
|
// AdminInfo info = (AdminInfo) session.get("ADMIN_INFO");
|
// if (info == null) {
|
// return "login";
|
// } else {
|
// return invocation.invoke();
|
// }
|
// }
|
}
|