tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Travis Reeder" <tra...@xabre.com>
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
d:\web\app\subdir\file.jsp

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
Xabre.com


Mime
View raw message