Created
January 22, 2014 15:51
-
-
Save usirin/8561182 to your computer and use it in GitHub Desktop.
Show all session variables on JSP pages
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
| Enumeration keys = session.getAttributeNames(); | |
| while (keys.hasMoreElements()) | |
| { | |
| String key = (String)keys.nextElement(); | |
| out.println(key + ": " + session.getValue(key) + "<br>"); | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment