在action或者Servlet中如何得到项目的webRoot路径
String webRootPath = request.getSession().getServletContext().getRealPath("/"); //获得webRoot的路径?
发布时间: 2012-12-28 10:29:04 作者: rapoo
在action或者Servlet中如何得到项目的webRoot路径
String webRootPath = request.getSession().getServletContext().getRealPath("/"); //获得webRoot的路径?