Struts2中的servlet对象

qq//struts中用 servlet的对象,以下为request session response application out

HttpServletRequest request = ServletActionContext.getRequest();

HttpSession session = request.getSession();

HttpServletResponse response = ServletActionContext.getResponse();

ServletContext servletContext = ServletActionContext.getServletContext();

PrintWriter out = response.getWriter();

你可能感兴趣的:(Struts2中的servlet对象)