STRUTS 获取网页的根目录实际地址

STRUTS 获取网页的根目录实际地址
String realpath = request.getRealPath("/");
String realpath = this.servlet.getServletContext().getRealPath("/");

你可能感兴趣的:(STRUTS 获取网页的根目录实际地址)