Forums Register Login

IMP c:remove doubt

+Pie Number of slices to send: Send
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...

+Pie Number of slices to send: Send
 

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.
Remember to always leap before you look. But always take the time to smell the tiny ads:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1186 times.
Similar Threads
3 questions
Validation problem
q on JSTL
JSTL: remove object from scope
jstl ..c:set
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 12:46:44.