tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Travis Reeder" <>
Subject getRealPath returns the base path??
Date Sat, 03 Jun 2000 16:31:24 GMT
When using the code
String filepath = getServletContext().getRealPath("/");
in a file like

filepath == "d:\web\app\"

Now shouldn't that return "d:\web\app\subdir\" ???

It's not really a problem once you know what it returns, but you would think
that it would return the subdir folder.

Travis Reeder
Director, Internet Technologies

View raw message