File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

All set session Variables List

 
Anurag Mishra
Ranch Hand
Posts: 121
  • 0
  • 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
  • 0
  • 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
  • 0
  • 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
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic