听起来没什么用, 有时候上传东西保存时还是需要的. request的那个getRealPath()那个方法被废除了, struts2中可以这样,ServletActionContext.getServletContext().getRealPath("/"); 其实就是servlet的Context
听起来没什么用, 有时候上传东西保存时还是需要的. request的那个getRealPath()那个方法被废除了, struts2中可以这样,ServletActionContext.getServletContext().getRealPath("/"); 其实就是servlet的Context