- public String execute() {
- HttpServletRequest request = ServletActionContext.getRequest();
- HttpServletResponse response = ServletActionContext.getResponse();
- return Action.SUCCESS;
- }
Struts2 的Action里面如何获得request和response
最新推荐文章于 2021-02-15 12:29:40 发布