标签:ring str action 对象 param 方法 context 获取 nbsp
方法一: HttpServletRequest request = Struts2Utils.getRequest();
HttpServletResponse response = Struts2Utils.getResponse();
方法二: HttpServletRequest request = ServletActionContext.getRequest();
HttpServletResponse response = ServletActionContext.getResponse();
String billId = Struts2Utils.getParameter("id").trim();
获取HttpServletRequest request对象 和 HttpServletResponse response对象
标签:ring str action 对象 param 方法 context 获取 nbsp
原文地址:http://www.cnblogs.com/panpanpan/p/6170918.html