• Post Reply Bookmark Topic Watch Topic
  • New Topic

cannot find symbol error message  RSS feed

 
Sunny Gibbony
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator


session.setAttribute is red in my Netbeans IDE with a "cannot find symbol" error message.

Any suggestions?

[ May 23, 2008: Message edited by: Ashlon Hill ]
[ May 23, 2008: Message edited by: Ashlon Hill ]
 
satishkumar janakiraman
Ranch Hand
Posts: 334
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you try ?
 
Sunny Gibbony
Ranch Hand
Posts: 39
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by satishkumar janakiraman:
Did you try ?


should that be in the class level or method level?
 
Rob Spoor
Sheriff
Posts: 21133
87
Chrome Eclipse IDE Java Windows
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Method level. The request is a parameter for the method, so that would mean you could use it for multiple different requests. That includes possible different sessions as well. You don't want to check a session for a request you're not even handling at the time.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!