Hi!
I'm trying to cope with this error-handling mechanism. I force my
servlet to throw a NullPointerException at the end of doGet(), and I have mapped an error-page in the deployment descriptor. I'm using Resin 2.1.0.
web.xml:
<web-app>
...other stuff...
<error-page>
<exception-type>java.lang.NullPointerException</exception-type>
<location>/nullpointer.html</location>
</error-page>
</web-app>
The container recognizes the html-file, though just saying that it can't find it. The html-file is placed in dir myapplication/nullpointer.html
I read something about using the sendError() method, but isn't that only for HTTPserver-errors like 401, 404
Hoping...