how do you navigate to error pages in JSP
October 9, 2012 Leave a comment
In the page where exception might occur, add a page directive as below
<%@ page errorPage="ExceptionHandler.jsp" %>
Here ExceptionHandler.jsp is the actual error JSP to which exception implicit object is made available when exception occurs. Inside this page we need to add a page directive as shown below
<%@ page isErrorPage="true" import="java.io.*" %>
Recent Comments