首页 > 代码库 > struts取得servlet

struts取得servlet

ActionContext ct = ActionContext.getContext();
HttpServletRequest request = (HttpServletRequest) ct
.get(ServletActionContext.HTTP_REQUEST);
HttpServletResponse response = (HttpServletResponse) ct
.get(ServletActionContext.HTTP_RESPONSE);

struts取得servlet