Portabilty concern for getServletContext (was Re: ??? Tomcat Bug? -- Throws NullPointerException ???)

2002-07-18 Thread Will Hartung
From: "Tony LaPaso" <[EMAIL PROTECTED]> Sent: Wednesday, July 17, 2002 5:53 PM Subject: ??? Tomcat Bug? -- Throws NullPointerException ??? > public class HelloWorld extends HttpServlet { >public void doGet(HttpServletRequest request, > HttpServletResponse response) >

Re: ??? Tomcat Bug? -- Throws NullPointerException ???

2002-07-17 Thread Craig R. McClanahan
On Thu, 18 Jul 2002, Tony LaPaso wrote: > Date: Thu, 18 Jul 2002 00:38:51 -0500 > From: Tony LaPaso <[EMAIL PROTECTED]> > Reply-To: Tomcat Users List <[EMAIL PROTECTED]> > To: Tomcat Users List <[EMAIL PROTECTED]> > Subject: Re: ??? Tomcat Bug? -- Throws Null

Re: ??? Tomcat Bug? -- Throws NullPointerException ???

2002-07-17 Thread Tony LaPaso
Actually, you are wrong but your comments helped me find the general cause of the problem...it is not a bug in Tomcat...comments below - Original Message - From: "Jacob Kjome" <[EMAIL PROTECTED]> > Just because you are creating an inner class within a servlet does not mean > that

Re: ??? Tomcat Bug? -- Throws NullPointerException ???

2002-07-17 Thread Jacob Kjome
Just because you are creating an inner class within a servlet does not mean that that inner class now gets access to the ServletConfig. That is what is happening when you call getServletContext() from the init() method. You are implicitly saying config.getServletContext (where config is the