//File: index.jsp
<%@ page errorPage="errPage.jsp" %>
Simple error testing
<%!
String nullString = null;
%>
<%-- Intentionally invoking a NullPointerException --%>
The length of the nullString is <%= nullString.length() %>
/////////////////////////////////////////////////////
//File: errPage.jsp
<%@ page isErrorPage="true" %>
Uncaught exception <%= exception %> has been encountered!
DealWithErrorInJsp.zip( 88 k)