tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "S Ramakrishnan" <>
Subject RE: log() ?
Date Tue, 27 Feb 2001 21:39:21 GMT
The Throwable argument is optional.
This is a different problem.

The GenericServlet has a log() service.
You do not need to seek ServletContext
to log messages within the HttpServlet methods
At any rate, you pl post the stack trace?


-----Original Message-----
From: Brett W. McCoy []
Sent: Tuesday, February 27, 2001 1:33 PM
Subject: Re: log() ?

On Tue, 27 Feb 2001, Shahed Ali wrote:

> Sorry for this stupid question,
> but how do I use the log() method in servlets ?
> In JSP application.log() seems to work,
> but in servlets, I tried getServletContext().log("adad") etc and
> I keep getting NullPointerExceptions

The function signature is log(String message, Throwable, throwable).  Is
this what might be casuing the null pointer exception?

-- Brett
Stupidity, like virtue, is its own reward.

To unsubscribe, e-mail:
For additional commands, email:

View raw message