If the programmer wants to place errors in a different page then the URL to the error page can be mentioned in this attribute as errorPage.
Syntax of errorPage attribute available for page directive is as below:
<%@ page errorPage = “relativeURL” %>
In the above statement, page and errorPage are keywords.
For example, the user specifies the attribute errorpage is:
<%@ page errorPage = “/handleerr/testerr.jsp” %>