Forums Register Login

session.getattribute()

+Pie Number of slices to send: Send
Hi guys
I have a very typical probelem.n one page I set my session as session.setAttribute("s");
And I try to retrieve it in second page session.getAttribute("s").toString();
It worked for me many times.But now it says java.lang.nullpointer exception

Can anyone explain why
bye
nitin
+Pie Number of slices to send: Send
 

Originally posted by nitin kumar:
Hi guys
I have a very typical probelem.n one page I set my session as session.setAttribute("s");
And I try to retrieve it in second page session.getAttribute("s").toString();
It worked for me many times.But now it says java.lang.nullpointer exception

Can anyone explain why
bye
nitin


May be session time out occured.
+Pie Number of slices to send: Send
Hi
I guess my server session time is out.So thats why Im unable to retrieve the object in session through session.getAttribute("sessionobject");
bye
nitin
It looks like it's time for me to write you a reality check! Or maybe a tiny ad!
a bit of art, as a gift, that will fit in a stocking
https://gardener-gift.com


reply
reply
This thread has been viewed 1168 times.
Similar Threads
session expiry
Quick question on session attributes
User session and refresh frames in jsp
Session Tracking using HttpSession
How to store values in session using struts 2 and then how to retrieve values in a jsp
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 08:39:06.