tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From jai ganesh <jaiganesh.girinat...@timesgroup.com>
Subject Re: [winNT, tomcat 3.2.3, jdk1.3.0_01]this.getServletContext();
Date Mon, 08 Oct 2001 13:53:36 GMT
Hi,
    I think the config object is available in the init(ServletConfig config) method of a servlet.

Namaskar

P.G.Jai Ganesh

Christian Ribeaud wrote:

> Hi,
>
> I have been trying to find out why I suddenly get a NullPointException in the service()
function with the following lines of code:
>   ServletContext context = this.getServletContext(); (and any varation)
> and why this:
>   ServletContext context = config.getServletContext();
> works fine in the init() function. Do I have forgotten something? Any help would be gratefully
appreciated. Have a nice day,
>
> christian


Mime
View raw message