JSP page directive – isErrorPage

isErrorPage attribute is used to specify whether or not a JSP page displays an error page by setting the value as true or false. By default, the value is set to false, meaning that the user cannot make use of the exception object in the JSP page. If the value is set to true, then it means that the user can make use of the exception object in the JSP page.

Syntax of isErrorPage attribute available for page directive is:

<%@ page isErrorPage=”true|false” %>

In the above statement, page and isErrorPage are keywords. By default, the value is false.

Leave a Reply

Your email address will not be published. Required fields are marked *