• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

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

 
Ranch Hand
Posts: 162
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 67746
173
Mac Mac OS X IntelliJ IDE jQuery TypeScript Java iOS
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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 ]
 
reply
    Bookmark Topic Watch Topic
  • New Topic