Tag getParent()
Get the parent Tag for a tag handler.  This method is used by the 
findAncestorWithClass
 static method in 
TagSupport
.
Methods
There are two main action methods and one method for releasing all resources owned by a 
tag handler.
doStartTag()
Process the start tag of this action. The 
doStartTag
 method assumes that 
the properties 
pageContext
 and 
parent
 have been set. It also assumes that any 
properties exposed as attributes have been set too. When this method is 
invoked, the body has not yet been evaluated.
At the end of this method invocation some scripting variables may be assigned 
from the 
pageContext
 object, as indicated by the optional 
TagExtraInfo
 class (at translation time).
This method returns an indication of whether the body of the action should be 
evaluated (EVAL_BODY_INCLUDE or EVAL_BODY_TAG) or not 
(SKIP_BODY). See below for more details.
EVAL_BODY_INCLUDE is not valid if the tag handler implements 
BodyTag
; EVAL_BODY_TAG is not valid if the tag handler implements 
Tag
 and does not implement 
BodyTag
.
This method may throw a JspException.
doEndTag()
Process the end tag of this action. This method will be called after returning 
from 
doStartTag
. The body of the action may or not have been evaluated, 
depending on the return value of 
doStartTag
.
At the end of this method invocation some scripting variables may be assigned 
from the 
pageContext
 object, as indicated by the optional 
TagExtraInfo
 class (at translation time).
If this method returns EVAL_PAGE, the rest of the page continues to be 
evaluated.  If this method returns SKIP_PAGE, the rest of the page is not 
evaluated and the request is completed.  If this request was forwarded or 
included from another page (or Servlet), only the current page evaluation is 
completed.
This method may throw a JspException.
release()
Release a tag instance. 
Chapter 5
Tag Extensions
102




JSP Web Hosting JavaServer Pages Specifications JSP Hosting




 
TotalRoute.net Business web hosting division of Vision Web Hosting Inc. All rights reserved.