Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

will session.removeAttribute throw exception?  RSS feed

 
sudheshna Iyer
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Will the session.removeAttribute("aa") throw exeption if there is no attribute set in session with "aa"?
 
Ankit Garg
Sheriff
Posts: 9608
36
Android Google Web Toolkit Hibernate IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
The documentation says this

If the session does not have an object bound with the specified name, this method does nothing.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!