Why a JNDI URL from getServletConfig().getResource() in Tomcat

2003-01-03 Thread Trevor Porter
I'm trying to read in a configuration file I have stored in my /WEB-INF directory from my servlet init() using getServletConfig().getResource(...) as follows: public void init() throws ServletException { ... String config = getServletConfig().getInitParameter(config); URL url =

Re: Why a JNDI URL from getServletConfig().getResource() in Tomcat

2003-01-03 Thread Craig R. McClanahan
On Fri, 3 Jan 2003, Trevor Porter wrote: Date: Fri, 03 Jan 2003 12:33:56 -0800 From: Trevor Porter [EMAIL PROTECTED] Reply-To: Tomcat Users List [EMAIL PROTECTED] To: [EMAIL PROTECTED] Subject: Why a JNDI URL from getServletConfig().getResource() in Tomcat I'm trying to read

Re: Why a JNDI URL from getServletConfig().getResource() in Tomcat

2003-01-03 Thread Jacob Kjome
Using getServletContext().getResourceAsStream(/WEB-INF/test.xml) should work just fine. I don't see any reason why the inputstream would be empty. I use this technique all the time. Jake At 12:33 PM 1/3/2003 -0800, you wrote: I'm trying to read in a configuration file I have stored in my