GaoJimmy 发表于 2013-2-7 16:20:43

获取tomcat的绝对路径

当前应用在服务器上的绝对路径:
this.request.getSession().getServletContext().getRealPath("/");
获取某页面在服务器上的绝对路径:
this.request.getSession().getServletContext().getRealPath("/index.html");
页: [1]
查看完整版本: 获取tomcat的绝对路径