This week's book giveaway is in the OCAJP 8 forum.
We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line!
See this thread for details.
The moose likes Servlets and the fly likes Can i print the HttpSession Value ?? Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of OCA Java SE 8 Programmer I Study Guide this week in the OCAJP 8 forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "Can i print the HttpSession Value ??" Watch "Can i print the HttpSession Value ??" New topic
Author

Can i print the HttpSession Value ??

gokulanand narayanan
Greenhorn

Joined: Feb 16, 2006
Posts: 23
Hi,

I need use the session values, can i able to get or print those values.

gudie me

Thanks
Anup Srivastava
Greenhorn

Joined: Dec 21, 2005
Posts: 21
To get:
x = (classofobjectx)session.getAttribute("nameofattribute");

To print:
out.println((String)session.getAttribute("nameofattribute"));
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Can i print the HttpSession Value ??
 
It's not a secret anymore!