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

AT_END, NESTED,AT_BEGIN

 
Vijay Bharghav bheemineni
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Can one please explain what is the use of "AT_END","NESTED","AT_BEGIN". I read about them in Tag handlers, Tag files and variable attribute tag but couldn't understand.

Thanks.
 
Rufus Addis
Ranch Hand
Posts: 83
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Simply it's the scope of the variable made available by the tag handler.

The default value is NESTED, i.e. the variable is available inside the tag.

AT_BEGIN is available anywhere in the tag like NESTED but extends to the end of the page (or the end of a "parent" enclosing tag).

AT_END is similar, but the tag starts at the close tag, and runs to the end of the page.

The impact is which methods can affect the variable's value i.e. you can't modify an AT_END scoped variable in the doStartTag() method.

The tomcat docs have a better explanation with a diagram and table:

http://tomcat.apache.org/tomcat-5.5-doc/jspapi/javax/servlet/jsp/tagext/VariableInfo.html

HTH - Rufus.
 
Vijay Bharghav bheemineni
Greenhorn
Posts: 29
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Rufus for clearing my doubt.

Vijay Bheemineni.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic