Progmatically retriving files in WEB-INF

2001-06-29 Thread Christopher Kirk
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

Antw: Progmatically retriving files in WEB-INF(Abwesenheitsnotiz)

2001-06-29 Thread Petra Hora
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

Re: Progmatically retriving files in WEB-INF

2001-06-29 Thread Bo Xu
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