Java获取request
ActionContext ctx = ActionContext.getContext();
HttpServletRequest request = (HttpServletRequest)ctx.get(ServletActionContext.HTTP_REQUEST);
Java获取response
HttpServletResponse response = ServletActionContext.getResponse();
Java获取request
ActionContext ctx = ActionContext.getContext();
HttpServletRequest request = (HttpServletRequest)ctx.get(ServletActionContext.HTTP_REQUEST);
Java获取response
HttpServletResponse response = ServletActionContext.getResponse();