Return to Snippet

Revision: 36091
at November 18, 2010 00:53 by mindhaq


Initial Code
<pre>
<%

for (Enumeration<String> enumeration = request.getAttributeNames(); enumeration.hasMoreElements();) {
    String attributeName = enumeration.nextElement();
    Object attribute = request.getAttribute(attributeName);
    out.println(attributeName + " -> " + attribute.getClass().getName() + ":" + attribute.toString());
}

%>
</pre>

Initial URL

                                

Initial Description

                                

Initial Title
Print all ServletRequest attributes in a JSP page

Initial Tags
debug

Initial Language
Java