• 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.
 
What are you doing? You are supposed to be reading this tiny ad!
the new thread boost feature brings a LOT of attention to your favorite threads
https://coderanch.com/t/674455/Thread-Boost-feature
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!