• Post Reply Bookmark Topic Watch Topic
  • New Topic

All set session Variables List  RSS feed

 
Anurag Mishra
Ranch Hand
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 7
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 121
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!