<%@page isErrorPage="true" import="java.util.*"%>

<html>
<head>
<title>Error page</title>
</head>
<body bgcolor="FFFFFF">

<h1>Error!</h1>


<!-- Print application attributes-->

<p>

<table border="1">
    <tr>
        <th colspan="2">Application attributes</th>
    </tr>

    <%
        Enumeration appAttributeEnum = application.getAttributeNames();
        while(appAttributeEnum.hasMoreElements()) {

            String name = (String)appAttributeEnum.nextElement();

    %>

    <tr>
        <th>
            <%=name%>
        </th>
        <td>
            <%=application.getAttribute(name)%>
        </td>
    </tr>

<%

        }

%>

</table>

</p>


<!-- Print request attributes-->

<p>

<table border="1">
    <tr>
        <th colspan="2">Request attributes</th>
    </tr>

    <%
        Enumeration attributeEnum = request.getAttributeNames();
        while(attributeEnum.hasMoreElements()) {

            String name = (String)attributeEnum.nextElement();

    %>

    <tr>
        <th>
            <%=name%>
        </th>
        <td>
            <%=request.getAttribute(name)%>
        </td>
    </tr>

<%

        }

%>

</table>

</p>


</body>
</html>
