<%@ page isErrorPage="true" %> JSP Error Page

JSP Error Page


<% if (exception != null) { %>

An exception was thrown: <%= exception %>

With the following stack trace:


<%
    ByteArrayOutputStream ostr = new ByteArrayOutputStream();
    exception.printStackTrace(new PrintStream(ostr));
    out.print(ostr);
%>
<% } else { %>

Error Page Error: Error Page was called with a null exception. This happens if you request this page directly. It should only be served in response to an exception on another JSP page. <% } %>