• Post Reply Bookmark Topic Watch Topic
  • New Topic

session null value in JSP , WebSphere 5.1

 
Anand Gondhiya
Ranch Hand
Posts: 155
  • Mark post as helpful
  • send pies
  • 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
  • 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
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13078
6
  • Mark post as helpful
  • send pies
  • 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
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!