aspose file tools*
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 Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » JSP
Bookmark "All set session Variables List" Watch "All set session Variables List" New topic
Author

All set session Variables List

Anurag Mishra
Ranch Hand

Joined: Jun 16, 2003
Posts: 121
Hi,
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.
thanks
vijaya lakshmi
Greenhorn

Joined: Oct 31, 2003
Posts: 7
HI!
U can get all session variable through getAttributeNames() of HttpSession interface.This method returns an Enumeration.,
Regards.
Vijaya.
[ 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.


thanks
Anurag
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: All set session Variables List