How Servlet calls jsp error page, when error occurred in Servlet? Does any of the conditions given below satisfy the above query ? 1.JSPException passed to JSP as a parameter 2.Using request dispatcher which saves the error in the coookie
I am not 100% sure how the container/AppServer determains which Exceptions are caught and sent to the error page but if you want a global error page you do specify this in your web.xml file. You can create filters or use struts frame work if you are looking to create custom error pages or simply print out the Exception.getMessage() in your error page. Hope this helps.