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, pageContext

    Fields inherited from interface jakarta.servlet.jsp.tagext.IterationTag

    EVAL_BODY_AGAIN

    Fields inherited from interface jakarta.servlet.jsp.tagext.Tag

    EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
  • Constructor Summary

    Constructors
    Constructor
    Description
    Default Constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
     
    int
    Validates 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.Tag
    Get the parent (closest enclosing tag handler) for this tag handler.
    void
    setAttribute1(String attribute1)
    Sets the value for _attribute1.
    void
    setAttribute2(String attribute2)
    Sets the value for _attribute2.
    void
    setAttribute3(String attribute3)
    Sets the value for _attribute3.
    void
    setPageContext(jakarta.servlet.jsp.PageContext pc)
    Set the current page context.
    void
    setParent(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

    Methods inherited from class java.lang.Object

    clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
  • Constructor Details

    • InitializationTag

      public InitializationTag()
      Default Constructor.
  • Method Details

    • getAttribute1

      public String getAttribute1()
      Returns the value of _attribute1.
      Returns:
      _attribute1
    • setAttribute1

      public void setAttribute1(String attribute1)
      Sets the value for _attribute1.
      Parameters:
      attribute1 - - the value for _attribute1
    • getAttribute2

      public String getAttribute2()
      Returns the value of _attribute2.
      Returns:
      _attribute2
    • setAttribute2

      public void setAttribute2(String attribute2)
      Sets the value for _attribute2.
      Parameters:
      attribute2 - - the value for _attribute2
    • getAttribute3

      public String getAttribute3()
      Returns the value for _attribute3.
      Returns:
      the value for _attribute3
    • setAttribute3

      public void setAttribute3(String attribute3)
      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:
      setPageContext in interface jakarta.servlet.jsp.tagext.Tag
      Overrides:
      setPageContext in class jakarta.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:
      setParent in interface jakarta.servlet.jsp.tagext.Tag
      Overrides:
      setParent in class jakarta.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:
      getParent in interface jakarta.servlet.jsp.tagext.Tag
      Overrides:
      getParent in class jakarta.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.JspException
      Validates that the tag initialization occurs before calling doStartTag().
      Specified by:
      doStartTag in interface jakarta.servlet.jsp.tagext.Tag
      Overrides:
      doStartTag in class jakarta.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:
      doEndTag in interface jakarta.servlet.jsp.tagext.Tag
      Overrides:
      doEndTag in class jakarta.servlet.jsp.tagext.TagSupport
      Throws:
      jakarta.servlet.jsp.JspException