tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Brett W. McCoy" <bmc...@chapelperilous.net>
Subject Re: log() ?
Date Tue, 27 Feb 2001 21:33:29 GMT
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
                                     http://www.chapelperilous.net/~bmccoy/
---------------------------------------------------------------------------
Stupidity, like virtue, is its own reward.


Mime
View raw message