wood burning stoves*
The moose likes JSP and the fly likes All set session Variables List Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "All set session Variables List" Watch "All set session Variables List" New topic

All set session Variables List

Anurag Mishra
Ranch Hand

Joined: Jun 16, 2003
Posts: 121
Can anyone tell me is there a way to get list of all
Session Variables whihc are set in a Page.
I mean can I get a List of All Session Variables present for a page.
vijaya lakshmi

Joined: Oct 31, 2003
Posts: 7
U can get all session variable through getAttributeNames() of HttpSession interface.This method returns an Enumeration.,
[ January 14, 2004: Message edited by: vijaya lakshmi ]
Anurag Mishra
Ranch Hand

Joined: Jun 16, 2003
Posts: 121
Hi Vijaya,
thanks a lot its worked for me I am just attaching the same code here
as it will be helpful for someone who needs same.

I agree. Here's the link: http://aspose.com/file-tools
subject: All set session Variables List
Similar Threads
get the radio button value in three differnt jsp
About Page Context attributes
Showing Server side Variables on JSP
DisplayTag Pagination
Session variables are not getting storred