struts2 拦截器Interceptor中取得request

 
  • public class AuthInterceptor extends MethodFilterInterceptor {   public String intercept(ActionInvocation invocation) throws Exception {   
  •            
  •         ActionContext actionContext = invocation.getInvocationContext();   
  •         HttpServletRequest request= (HttpServletRequest) actionContext.get(StrutsStatics.HTTP_REQUEST);   
  • 你可能感兴趣的:(struts,Interceptor)