Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

session.getattribute()  RSS feed

 
nitin kumar
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
Pradeep bhatt
Ranch Hand
Posts: 8933
Firefox Browser Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
 
nitin kumar
Ranch Hand
Posts: 105
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!