Skip to Main Content

Java EE (Java Enterprise Edition) General Discussion

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

servletContext.getResourceAsStream returning null

843841Jan 8 2005 — edited Jan 9 2005
hi, i am trying to get stream of a file in servlet using
initstream = servletContext.getResourceAsStream(completePath);
complete path is absolute path of file on local machine.
and directory of file is in classpath, but still getting null in "initstream".
i am using jakarta-tomcat-4.0.2.
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 6 2005
Added on Jan 8 2005
1 comment
185 views