ServletActionContext.getRequest().getRealPath(savaPath);现在已经不能用了。用什么替换解决方案
ServletActionContext.getRequest().getRealPath(savaPath);现在已经不能用了。用什么替换
ServletActionContext.getRequest().getRealPath(savaPath);
在struts2的action中要用什么替换呢
------解决方案--------------------
ServletActionContext.getServletContext().getRealPath(savaPath);
ServletActionContext.getRequest().getRealPath(savaPath);
在struts2的action中要用什么替换呢
------解决方案--------------------
ServletActionContext.getServletContext().getRealPath(savaPath);