I was not able to get the error page indicated in the web.xml to be displayed when an unAvailableException is thrown in a
servlet.
My web.xml contains:
<error-page>
<exception-type>
javax.servlet.UnavailableException
</exception-type>
<location>
/MyException.html
</location>
</error-page>
My servlet's doGet() method contains:
throw new UnavailableException("Unavailable Exception thrown");
The funny thing is that is u replace UnavailableException with ServletException in both the web.xml and the Servlet code, it works fine.
Please help!!!