• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

IMP c:remove doubt

 
Sandeep Vaid
Ranch Hand
Posts: 392
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If suppose i have a attribute in request Scope as well as in session Scope and i use remove tag, then it will remove attribute from both these scopes in one shot...

 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
then it will remove attribute from both these scopes in one shot...

That's right. c:remove uses PageContext#removeAttribute method, so if you don't specify the scope explicitly, the attribute will be removed from all scopes.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic