This week's giveaway is in the Java/Jakarta EE forum.
We're giving away four copies of Java EE 8 High Performance and have Romain Manni-Bucau on-line!
See welcome thread
Win a copy of Java EE 8 High Performance this week in the Java/Jakarta EE forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Session tracking  RSS feed

Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi All
I m using javawebserver2.0 trial version
I m using HttpSession object for session tracking
in which I put a vector in my first servlet where i create this session
through this servlet i popup a jsp through a hyperlink
and after entering some values in input fields of that JSP
i add those values in a vector and add that vector to the vector which i put in session object in the first servlet
Now on submit button of jsp i call another servlet in which i try to retrive values of the session vector .
Problem i am facing is that
on first time whenever i load my first servlet and reach to last servlet via JSP
it always give nullpointerexception but if i refresh the browser and reload the first servlet it starts working fine
Can anyone pls give me a hint where i may be wrong
Don't get me started about those stupid light bulbs.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!