On Mon, 29 Oct 2001, Carey Parker wrote:
> Date: Mon, 29 Oct 2001 12:54:51 -0500
> From: Carey Parker <cparker@longboard.com>
> Reply-To: Tomcat Users List <tomcat-user@jakarta.apache.org>
> To: 'Tomcat Users List' <tomcat-user@jakarta.apache.org>
> Subject: RE: init parameters and ServletConfig
>
> Thanks, Craig - I have a follow-up.
>
> I assume, then, that the engine must somehow provide a different
> ServletConfig object for each servlet.
That is correct.
> I see no way, given the method calls
> below, for the ServletConfig object to know which servlet is invoking it -
> so it can't know what to show and what to hide (assuming it has all the
> parameters in it).
>
> So, the engine must create a custom ServletConfig object for each servlet
> that it calls init() on. Right?
>
> Carey
That's right. There is one ServletContext instance for the entire web
application, but there is a ServletConfig instance for every servlet
definition.
Craig
--
To unsubscribe, e-mail: <mailto:tomcat-user-unsubscribe@jakarta.apache.org>
For additional commands, e-mail: <mailto:tomcat-user-help@jakarta.apache.org>
|