<%@ page isErrorPage="true" %> <%@ page language="java" %> <%@ page import="java.util.*" %> <%@ page import="java.io.*" %> <% Object statusCode = request.getAttribute("javax.servlet.error.status_code"); Object exceptionType = request.getAttribute("javax.servlet.error.exception_type"); Object message = request.getAttribute("javax.servlet.error.message"); %> Error Page

Home


An Error has occured:

Status Code <%= statusCode %>
Exception Type <%= exceptionType %>
Message <%= message %>
Exception <% if( exception != null ) { out.print("
");
		    exception.printStackTrace(new PrintWriter(out));
		    out.print("
"); } %>
Root Cause <% if( (exception != null) && (exception instanceof ServletException) ) { Throwable cause = ((ServletException)exception).getRootCause(); if( cause != null ) { out.print("
");
			cause.printStackTrace(new PrintWriter(out));
			out.print("
"); } } %>

Header List <% String name = ""; String value = ""; java.util.Enumeration headers = request.getHeaderNames(); while(headers.hasMoreElements()) { name = (String) headers.nextElement(); value = request.getHeader(name); %> <% } %>
Name Value
<%=name%> <%=value%>
Attribute List <% java.util.Enumeration attributes = request.getAttributeNames(); while(attributes.hasMoreElements()) { name = (String) attributes.nextElement(); if (request.getAttribute(name) == null) { value = "null"; } else { value = request.getAttribute(name).toString(); } %> <% } %>
<%=name%> <%=value%>