ActionContext ac = ActionContext.getContext();
ServletContext sc = (ServletContext) ac.get(ServletActionContext.SERVLET_CONTEXT);
String temp = ServletActionContext.getRequest().getRealPath("/");
Struts获取Web应用根目录
最新推荐文章于 2017-09-28 18:10:09 发布