Class InitializationTag
java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
ee.jakarta.tck.pages.api.jakarta_servlet.jsp.tagext.tagsupport.InitializationTag
- All Implemented Interfaces:
jakarta.servlet.jsp.tagext.IterationTag,jakarta.servlet.jsp.tagext.JspTag,jakarta.servlet.jsp.tagext.Tag,Serializable
public class InitializationTag
extends jakarta.servlet.jsp.tagext.TagSupport
Tag to verify that the JSP implementation object properly initialized any
attributes present with the in tag as well as setting the pageContext and
parent
- See Also:
-
Field Summary
Fields inherited from class jakarta.servlet.jsp.tagext.TagSupport
id, pageContextFields inherited from interface jakarta.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAINFields inherited from interface jakarta.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionintdoEndTag()intValidates that the tag initialization occurs before calling doStartTag().Returns the value of _attribute1.Returns the value of _attribute2.Returns the value for _attribute3.jakarta.servlet.jsp.tagext.TagGet the parent (closest enclosing tag handler) for this tag handler.voidsetAttribute1(String attribute1) Sets the value for _attribute1.voidsetAttribute2(String attribute2) Sets the value for _attribute2.voidsetAttribute3(String attribute3) Sets the value for _attribute3.voidsetPageContext(jakarta.servlet.jsp.PageContext pc) Set the current page context.voidsetParent(jakarta.servlet.jsp.tagext.Tag t) Set the parent (closest enclosing tag handler) of this tag handler.Methods inherited from class jakarta.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getValue, getValues, release, removeValue, setId, setValue
-
Constructor Details
-
InitializationTag
public InitializationTag()Default Constructor.
-
-
Method Details
-
getAttribute1
Returns the value of _attribute1.- Returns:
- _attribute1
-
setAttribute1
Sets the value for _attribute1.- Parameters:
attribute1- - the value for _attribute1
-
getAttribute2
Returns the value of _attribute2.- Returns:
- _attribute2
-
setAttribute2
Sets the value for _attribute2.- Parameters:
attribute2- - the value for _attribute2
-
getAttribute3
Returns the value for _attribute3.- Returns:
- the value for _attribute3
-
setAttribute3
Sets the value for _attribute3.- Parameters:
attribute3- - the value for _attribute3
-
setPageContext
public void setPageContext(jakarta.servlet.jsp.PageContext pc) Set the current page context. This method is invoked by the JSP page implementation object prior to doStartTag().This value is *not* reset by doEndTag() and must be explicitly reset by a page implementation if it changes between calls to doStartTag().
- Specified by:
setPageContextin interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
setPageContextin classjakarta.servlet.jsp.tagext.TagSupport- Parameters:
pc- The page context for this tag handler.
-
setParent
public void setParent(jakarta.servlet.jsp.tagext.Tag t) Set the parent (closest enclosing tag handler) of this tag handler. Invoked by the JSP page implementation object prior to doStartTag().This value is *not* reset by doEndTag() and must be explicitly reset by a page implementation.
- Specified by:
setParentin interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
setParentin classjakarta.servlet.jsp.tagext.TagSupport- Parameters:
t- The parent tag, or null.
-
getParent
public jakarta.servlet.jsp.tagext.Tag getParent()Get the parent (closest enclosing tag handler) for this tag handler.- Specified by:
getParentin interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
getParentin classjakarta.servlet.jsp.tagext.TagSupport- Returns:
- the current parent, or null if none.
- See Also:
-
TagSupport.findAncestorWithClass(jakarta.servlet.jsp.tagext.Tag, java.lang.Class<?>)
-
doStartTag
public int doStartTag() throws jakarta.servlet.jsp.JspExceptionValidates that the tag initialization occurs before calling doStartTag().- Specified by:
doStartTagin interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
doStartTagin classjakarta.servlet.jsp.tagext.TagSupport- Returns:
- Tag.SKIP_BODY
- Throws:
jakarta.servlet.jsp.JspException- if an error occurred while processing this tag
-
doEndTag
public int doEndTag() throws jakarta.servlet.jsp.JspException- Specified by:
doEndTagin interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
doEndTagin classjakarta.servlet.jsp.tagext.TagSupport- Throws:
jakarta.servlet.jsp.JspException
-