That's exactly what I have done. I have even tested it by having a servlet do a 
int i = 500/0; which causes a 500 error and a divide by zero exception which 
invokes the page correctly with the error and the stack trace; however, 
sometimes for errors (like trying to access a null object) the page is not 
invoked but there's a stack trace in the logs.

In Response To: 

try to put something like this into your web.xml (i hope that is what
you've been asking for):

<error-page>
        <exception-type>java.lang.Throwable</exception-type>
        <location>/errorPages/generalError.html</location>
</error-page>

That page should just display some message like "general error
occured, please report to webmaster... ". The error itself you then
should find in your logs.

Cheers

Gregor
-- 
what's puzzlin' you, is the nature of my game
gpgp-fp: 79A84FA526807026795E4209D3B3FE028B3170B2
gpgp-key available @ http://pgpkeys.pca.dfn.de:11371

---------------------------------------------------------------------
To start a new topic, e-mail: [EMAIL PROTECTED]
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]



 Sent from Techienuggets Netbeans IDE Forum: 
http://www.techienuggets.com/Detail?tx=11104

---------------------------------------------------------------------
To start a new topic, e-mail: users@tomcat.apache.org
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to