Get the root dir of a web appTag(s): Servlet/JSP Servlet/JSP


In a JSP
String path = application.getRealPath("/");
In a Servlet
String path = getServletContext.getRealPath("/");

blog comments powered by Disqus