tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From G Winstanley <m...@stanlink.net>
Subject Re: getServletContext() returning null...
Date Mon, 14 Jan 2002 17:17:24 GMT
On Mon, 14 Jan 2002 09:59:49 -0500 you wrote:

> The easiest way to get this behavior is to override
> init(ServletConfig config) in your servlet and forget
> to call super.init(config) as instructed in the Javadoc.
> You can either call super.init(config), or override
> init() instead, which is called from super.init(config).
> 
> Cheers,
> Larry
> 

<fx>Kerching!</fx>

Of course! I don't often bother using the init() method and peform lazy
instantiation of most things. I seem to remember I've forgotten this one
before - thanks very much, Larry.

Stan

--
To unsubscribe:   <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands: <mailto:tomcat-user-help@jakarta.apache.org>
Troubles with the list: <mailto:tomcat-user-owner@jakarta.apache.org>


Mime
View raw message