What JSP directive should appear at the top of main.jsp in order to enable this functionality?

A Web application is made up of two JSP files (main.jsp and error.jsp). Any exceptions thrown
within main.jsp should be automatically handled by error.jsp. What JSP directive should appear at
the top of main.jsp in order to enable this functionality?

A Web application is made up of two JSP files (main.jsp and error.jsp). Any exceptions thrown
within main.jsp should be automatically handled by error.jsp. What JSP directive should appear at
the top of main.jsp in order to enable this functionality?

A.
<%@ page errorPage=”error.jsp”%>

B.
<%@ page isErrorPage=”true”%>

C.
<% page redirectError=”error.jsp”;%>

D.
<%@ page isErrorPage=”false”%>



Leave a Reply 0

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