Only 48 hours left in the trailboss' kickstarter!

New rewards and stretch goals. CLICK HERE!



  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Session Attribute  RSS feed

 
Atishay Jain
Greenhorn
Posts: 10
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello,

I want to check, whether the attribute is present in the session or not...

Can someone help me in this??

Thanks in advance
 
Muhammad Saifuddin
Ranch Hand
Posts: 1325
Android Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you can use getAttribute see Java Doc for more help
HttpSession
 
vjy chin
Ranch Hand
Posts: 279
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
As Saif suggested, you can use getAttribute to get the value. If the value is null, then the value is not present, if it's not null, then the value is in session.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!