tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brett G. Palmer" <>
Subject Reading a file from a Context
Date Thu, 01 Mar 2001 18:44:59 GMT
What is the best way to read a file from a Context in Tomcat?  I know I can
get the context path from the "getContextPath()" method, but most file
stream APIs require a full path.  There most be a clean way to accomplish
this without hard coding any directory path info.

Any suggestions would be appreciated?



View raw message