Hopefully somebody could point out where I am going wrong...
I am using WAR deployment under Tomcat3.2.1 on a WinNT4 box.
I have placed a file (me.txt) in the WEB-INF directory, and have written the
following servlet which tries to read the file.
public class MercuryServlet extends
Ich bin bis 9.7.2001 auf Urlaub. Bitte wenden Sie sich in dieser Zeit an meine
Kollegen im Team EW2
Mit freundlichen Grüßen
Petra Hora
Christopher Kirk wrote:
[...]
InputStream inputStream
= getServletConfig().getServletContext().getResourceAsStream(me.txt);
if (inputStream == null) {
System.out.println(NULL);
} else {
System.out.println(NOT NULL);
}
}
}
However, inputStream is