• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

accessing session variable values in java class

 
suresh pulapally
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

how to access session values in java classes.
ex:i have a jsp page one.jsp, i have stored some values in session object in this page and forwarded to second.jsp.
second.jsp is using some java classes, in one of that java class i want to get the stored value in session object.

Thanks
Suresh
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Either pass the values or pass a reference to the session itself to your Java object.
 
suresh pulapally
Ranch Hand
Posts: 47
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank you,
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic