struts2 拦截器Interceptor中取得request、response

如何在Struts2中的拦截器中获取 request response 等对象呢?

ActionContext actionContext = invocation.getInvocationContext();   
HttpServletRequest request= (HttpServletRequest) actionContext.get(StrutsStatics.HTTP_REQUEST);

转自:http://blog.csdn.net/chruan/article/details/7003877

猜你喜欢

转载自rainbow702.iteye.com/blog/2226100