Win a copy of The Little Book of Impediments (e-book only) this week in the Agile and Other Processes forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Tag scope attributes ?

 
Victor Dolirio
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi ranchers,

I'm studing to take the certification and by now I'm in the chapter 9(JSTL). On the page 450 of the second edition HFSJ book where the autor is telling that the var attribute of c:forEach tag is using a "Tag" scoped attribute but after in custom tags chapter the examples are using the pageContext api, only tag files are using this tag scope. What about this scope? If it actually exists, where in custom tag handles can I get a object handling objects of this scope?
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Originally posted by Victor Dolirio:
[QB]Hi ranchers,

only tag files are using this tag scope. What about this scope?


JSTL =customtags+EL [jstl itself is a custom tag]

Hope This Helps
 
Victor Dolirio
Ranch Hand
Posts: 57
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I don�t understood what you mean, actually I wanna know if exists a Tag Scope used to bind attributes for Custom Tags like the "tag scope" existing in the tag files for passing attributes, in other words, an attribute scope that lives only in the tag processing and if exists how I work with...
 
Christophe Verré
Sheriff
Posts: 14691
16
Eclipse IDE Ubuntu VI Editor
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I don't think there is such a scope. When they talk about "Tag" scoped attribute, they mean that the variable will not be accessible outside the tag. For example, in the JSTL specification about the var attribute of the forEach tag, they say "This scoped variable has nested visibility.".
 
Seetharaman Venkatasamy
Ranch Hand
Posts: 5575
Eclipse IDE Java Windows XP
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks verre,

clear explanations
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic