Get the root dir of a web appTag(s): Servlet/JSP Servlet/JSP
In a JSP
String path = application.getRealPath("/");
String path = getServletContext.getRealPath("/");
mail_outline
Send comment, question or suggestion to howto@rgagnon.com
Send comment, question or suggestion to howto@rgagnon.com