reading content in WEB-INF

2002-02-19 Thread Max Z.
This is what is written in the docs: web/WEB-INF/ - The special configuration files required for your application, including the web application deployment descriptor (web.xml), tag library descriptors for custom tag libraries you have created, and other resource files you wish to include within

Re: reading content in WEB-INF

2002-02-19 Thread Fredrik Westermarck
Max Z. wrote: I am storing a file in the WEB-INF directory and I need to access it with a servlet, how would I get to it? Use: InputStream is = getServletContext().getResourceAsStream(/WEB-INF/your.file); -- To unsubscribe: mailto:[EMAIL PROTECTED] For additional commands:

reading content in WEB-INF

2002-02-19 Thread Max Z.
I am using Tomcat 4.0.2. I have a file in the WEB-INF directory and I need to access it with a servlet, how can I do that? This is what is written in the docs: web/WEB-INF/ - The special configuration files required for your application, including the web application deployment descriptor