• 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 null value in JSP , WebSphere 5.1

 
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Env: WSAD, webpshere Application server 5.1 Test env. , JSP, servlet, HTML Frames, Windows XP


I am submitting a JSP with dropdown menu (retrieved from session vector) and when I do session.getAttribute(vector) in servlet handler java class , I get the null.

any ideas ? I restared server and redeployed the code but no success

Thanks.
-Anand
 
Anand Gondhiya
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Sorry for writing incorrect information.

session.getAttribute(PREFIX + "AMTrustOfficerMbrType") statement doesnt' return NULL. It does return a Vector but the vector has Zero elements in it.

i.e the session value is not null , it's empty.

any ideas ?
Thanks
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Since the session mechanism is not going to magically replace your vector with a new empty one, it MUST be your code that does it. I would add logging statements to check if the sessionID (with getId()) is the same in both JSP and servlet as a first debugging step.

Bill
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic