Added thanks.

See http://jakarta.apache.org/cactus/faq.html#faq_init_servlet

-Vincent

> -----Original Message-----
> From: Robert Koberg [mailto:[EMAIL PROTECTED]
> Sent: vendredi 21 janvier 2005 22:13
> To: [email protected]
> Subject: FAQ: Why is my ServletContext and ServletConfig null in the
> servlet under test?
> 
> Hi,
> 
> For future users who do not know what must be plainly obvious to other
> users :) I spent way to long on this before finally figuring it out...
> 
> Why is my ServletContext and ServletConfig null in the servlet under test?
> 
> You must initialize the servlet with the implicit cactus config object.
> For example:
> 
> MyServlet servlet = new MyServlet();
> servlet.init(config);
> 
> best,
> -Rob
> 
> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail: [EMAIL PROTECTED]





---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to