Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How to display all session variables  RSS feed

 
Fritz Largosa
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to see all session variable names in JSP? I want to see all names of session variables running. Thanks.
 
Gareth Faulkner
Greenhorn
Posts: 22
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can use the getAttributeNames method of HTTPSession

http://java.sun.com/j2ee/1.4/docs/api/javax/servlet/http/HttpSession.html

Gareth
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!