Created
April 9, 2013 12:44
-
-
Save gerjantd/5345423 to your computer and use it in GitHub Desktop.
Java/JSP: list request attributes
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<HTML> | |
<BODY> | |
<% | |
out.println("<DL>"); | |
java.util.Enumeration attrs = pageContext.getRequest().getAttributeNames(); | |
while (attrs.hasMoreElements()) { | |
String attr = (String) attrs.nextElement(); | |
Object val = pageContext.getRequest().getAttribute(attr); | |
out.println("<DT>"+attr+"</DT><DD>"+val.toString()+"<DD/>"); | |
} | |
out.println("</DL>"); | |
%> | |
</BODY> | |
</HTML |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment