by Kishan » Mon Feb 18, 2013 5:08 am
You can declare error page in the web.xml. You can declare error page for status codes and Exceptions.
<error-page>
<error-code>404</error-code>
<location>/Error404.html</location>
</error-page>
<error-page>
<exception-type>java.sql.SQLException</exception-type>
<location>/DBError.html</location>
</error-page>