thanks remy, I'll give that a try.
peter Remy Maucherat wrote: > > peter lin wrote: > > > I'm hoping others have done this, since I can't think of a way. > > > > I modified my web.xml to redirect nullpointerexception and jspexception > > to my own error page, but I still want to log the exception to the > > localhost_log. I made test pages to purposely cause nullpointer and jsp > > exceptions. so far it's good. When the request gets logged in access log > > the status code is 200. No log in localhost_log appears. > > > > I don't see any way in the request/response API to get the stacktrace. > > > > Is this even possible? > > You can get the Throwable from the atribute, and then use > Throwable.printStackTrace(PrintStream). > I think that's what you want, right ? > > Remy > > -- > To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> > For additional commands, e-mail: <mailto:[EMAIL PROTECTED]> -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>
