%@ page import="java.util.Enumeration" %>
|
Cookie Info
|
<%
// try to get theme cookie
Cookie[] c = request.getCookies();
if ( c != null )
{
%>
|
Name
|
Value
|
Path
|
Domain
|
<%
// look for the defaultThemeCookie
int i;
for ( i = 0; i < c.length; i++ )
{
%>
|
<%= i %>
|
<%= c[i].getName() %>
|
<%= c[i].getValue() %>
|
<%= c[i].getPath() %>
|
<%= c[i].getDomain() %>
|
<%
} // end for cookies in c
} // end if we have cookies
else
{
%>
|
No Cookies found
|
<%
} // end else
%>
All the header names
<%
Enumeration e = request.getHeaderNames();
String s;
%><%
while ( e.hasMoreElements() )
{
s = e.nextElement().toString();
%>- <%= s %>
<%
s = request.getHeader ( s );
%>- <%= s %>
<%
}
%>