方法一: HttpServletRequest request = Struts2Utils.getRequest();
HttpServletResponse response = Struts2Utils.getResponse();
方法二: HttpServletRequest request = ServletActionContext.getRequest();
HttpServletResponse response = ServletActionContext.getResponse();
String billId = Struts2Utils.getParameter("id").trim();
时间: 2024-10-03 23:00:58