java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
ee.jakarta.tck.pages.api.jakarta_servlet.jsp.tagext.tagsupport.ParentTag
All Implemented Interfaces:
jakarta.servlet.jsp.tagext.IterationTag, jakarta.servlet.jsp.tagext.JspTag, jakarta.servlet.jsp.tagext.Tag, Serializable

public class ParentTag extends jakarta.servlet.jsp.tagext.TagSupport
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
    protected void
    addMethodToList(String methodName)
    This will add an application scoped List to the page context based of the name (_result).
    int
    Adds this method name to the method list and returns Tag.SKIP_BODY.
    int
    Adds this method name to the method list and returns Tag.EVAL_PAGE.
    int
    Simple tag that includes the evaluation of it's body.
    Gets the name of the application scoped list.
    void
    setResult(String result)
    Sets the name of the application scoped list.

    Methods inherited from class jakarta.servlet.jsp.tagext.TagSupport

    findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue

    Methods inherited from class java.lang.Object

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

    • ParentTag

      public ParentTag()
      Default constructor.
  • Method Details

    • getResult

      public String getResult()
      Gets the name of the application scoped list.
      Returns:
      the name of the application scoped list
    • setResult

      public void setResult(String result)
      Sets the name of the application scoped list.
      Parameters:
      result - - the name of the list
    • doStartTag

      public int doStartTag() throws jakarta.servlet.jsp.JspException
      Simple tag that includes the evaluation of it's body.
      Specified by:
      doStartTag in interface jakarta.servlet.jsp.tagext.Tag
      Overrides:
      doStartTag in class jakarta.servlet.jsp.tagext.TagSupport
      Returns:
      Tag.EVAL_BODY_INCLUDE
      Throws:
      jakarta.servlet.jsp.JspException - if an error occurs.
    • doEndTag

      public int doEndTag() throws jakarta.servlet.jsp.JspException
      Adds this method name to the method list and returns Tag.EVAL_PAGE.
      Specified by:
      doEndTag in interface jakarta.servlet.jsp.tagext.Tag
      Overrides:
      doEndTag in class jakarta.servlet.jsp.tagext.TagSupport
      Returns:
      Tag.EVAL_PAGE
      Throws:
      jakarta.servlet.jsp.JspException - if an error occurs
    • doAfterBody

      public int doAfterBody() throws jakarta.servlet.jsp.JspException
      Adds this method name to the method list and returns Tag.SKIP_BODY.
      Specified by:
      doAfterBody in interface jakarta.servlet.jsp.tagext.IterationTag
      Overrides:
      doAfterBody in class jakarta.servlet.jsp.tagext.TagSupport
      Returns:
      Tag.SKIP_BODY
      Throws:
      jakarta.servlet.jsp.JspException - if an error occurs
    • addMethodToList

      protected void addMethodToList(String methodName)
      This will add an application scoped List to the page context based of the name (_result). The list contains the methods called against this tag handler by the container.
      Parameters:
      methodName - - the method name to add to the list.