デバック用

<table border=1 cols="80">
<tr>
<td colspan=2 nowrap><b>リクエストのオブジェクト一覧</b></td>
</tr>
<tr>
<td><b>name</b></td><td><b>中身</b></td>
</tr>
<%for(java.util.Enumeration ite = request.getParameterNames(); ite.hasMoreElements(); ){
String name = (String)ite.nextElement();
%>
<tr>
<td><%=name%></td>
<td>&nbsp;<%=request.getParameter(name)%></td>
</tr>
<%}%>
</table>
<br>
<table border=1 cols="80">
<tr>
<td colspan=2 nowrap><b>セッションのオブジェクト一覧</b></td>
</tr>
<tr>
<td><b>name</b></td><td><b>中身</b></td>
</tr>
<%for(java.util.Enumeration ite = session.getAttributeNames(); ite.hasMoreElements(); ){
String name = (String)ite.nextElement();
%>
<tr>
<td><%=name%></td>
<td>&nbsp;<%=session.getAttribute(name)%></td>
</tr>
<%}%>
</table>
<br>
<table border=1 cols="80">
<tr>
<td colspan=2 nowrap><b>Cookie一覧</b></td>
</tr>
<tr>
<td><b>name</b></td>
<td><b>Value</b></td>
<td><b>Age</b></td>
</tr>
<%
Cookie[] cookies = request.getCookies();
if(cookies != null){
for (java.util.Iterator ite = java.util.Arrays.asList(cookies).iterator(); ite.hasNext();) {
Cookie cookie = (Cookie) ite.next();
String name = cookie.getName();
String value = cookie.getValue();
String age = cookie.getMaxAge() + "";
%>
<tr>
<td><%=name%></td>
<td>&nbsp;<%=value%></td>
<td>&nbsp;<%=age%></td>
</tr>
<%}%>
</table>
<%}%>