• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Session tracking

 
Ranch Hand
Posts: 413
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
reply
    Bookmark Topic Watch Topic
  • New Topic