• Post Reply Bookmark Topic Watch Topic
  • New Topic

will session.removeAttribute throw exception?

 
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: 9591
34
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!