Forums Register Login
how can i get the absolute path
How can I get the absolute path of the server. Here I am explaining neatly, My tomcat server directory in c:\tomcat\webapps\. and some one may containg like c:\tomcat4.1.2\webapps... So this is varies from server to server. So How can get the above path dynamically in to the server request.
thanks in advance
Hi narasimharao,
<% String rp = application.getRealPath(request.getServerName());%>
<%=rp.substring( 0, rp.indexOf("ROOT")) %>
Come have lunch with me Arthur. Adventure will follow. This tiny ad:
ScroogeXHTML 7.1 - RTF to HTML5 / XHTML converter

This thread has been viewed 678 times.

All times above are in ranch (not your local) time.
The current ranch time is
Feb 20, 2018 18:43:17.