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