|
Java™ by example!
|
|
|
How do I create and use my own JSP exception page?
If exceptions occur in JSP pages that are not handled, you can make the engine redirect to an JSP or HTML error page. You can even have access to the exception occurred (the "implicit exception object") if you set the isErrorPage attribute to true. A divide by zero JSP:
errorpage.jsp:
Test it out here: Divide by zero JSP
Further Information
Author of answer: Joris Van den Bogaert
Comments to this answer are only viewable by members. Login or become a member!
|
|
|
|
|