• Post Reply Bookmark Topic Watch Topic
  • New Topic

To Which Scope c:set target.... tag values will be bounded

 
Bennet Xavier
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In

<c:set var=�varName� [scope=�{page|request|session|application}�]>
body content
</c:set>

tag we are mentioning the scope to which it has to bound.
----------------------------------------------------------------------------
But in

<c:set target=�target� property=�propertyName�>
body content
</c:set>

we are not mentioning any scope.

My doubt is: Will that conent is bounded to scope to which the target depends or something else?

Thanks In Advance.
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65524
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hmm, the Spec doesn't specifically say, but if the behavior follows other precedents, I'd say that when a scope is not specified, the target would be searched for starting at page scope and moving upward. Remember, when target is used, the target reference must exist.

It should be easy for you to test this supposition.
[ July 04, 2008: Message edited by: Bear Bibeault ]
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!