Question

I was wondering if there is a best practice or pattern when it comes to how to handle a ServletException if it is thrown when trying to call the forward() method on a RequestDispatcher object. Is there something I configure within the web.xml file that can handle this?

Was it helpful?

Solution

I don't know if that example: http://mrbool.com/how-to-create-error-page-in-j2ee/26770 is enough sophisticated, but JEE offers you specify in web.xml that concrete exception must be handled by particular servlet or JSP page and customize error handling in the servlet/JSP

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top