This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
I have a doubt about c:set with the "var" version (<c:set var="name" value=""/>
If the value evaluates to null , and the scope is not mentioned , I understood from HFSJ that it will start looking in all the scopes starting from page scope, so if this var is present in more than one scope, will it remove it from all scopes(like c:remove does when scope is not mentioned) or just the one it encounters first ?
Might be a silly doubt but can somebody please clear this out ..
If value is null
Syntax 1: the scoped variable defined by var and scope is removed.
* If attribute scope is specified, the scoped variable is removed according to
the semantics of PageContext.removeAttribute(varName, scope).
* Otherwise, the scoped variable is removed according to the semantics of
So the attribute will be removed from all the scopes. The following is from the java documentation of PageContext.removeAttribute(String)
Remove the object reference associated with the given name from all scopes. Does nothing if there is no such object.