转自: http://www.iteye.com/problems/98044
第一一个Interceptor(判断用户权限的时候经常使用) 代码如下
public class MyInterceptor extends AbstractInterceptor {
public String intercept(ActionInvocation invocation) throws Exception {
// 获取当前访问的URL,并去掉当前应用程序的前缀(也就是 namespaceName + actionName )
String namespace = invocation.getProxy().getNamespace();
String actionName = invocation.getProxy().getActionName();
String privilegeUrl = null;
System.out.print(actionName);// 就是action的名字
}
}
第一一个Interceptor(判断用户权限的时候经常使用) 代码如下
public class MyInterceptor extends AbstractInterceptor {
public String intercept(ActionInvocation invocation) throws Exception {
// 获取当前访问的URL,并去掉当前应用程序的前缀(也就是 namespaceName + actionName )
String namespace = invocation.getProxy().getNamespace();
String actionName = invocation.getProxy().getActionName();
String privilegeUrl = null;
System.out.print(actionName);// 就是action的名字
}
}

956

被折叠的 条评论
为什么被折叠?



