Class ClassicAttributeTestTag

java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
ee.jakarta.tck.pages.spec.core_syntax.actions.attribute.ClassicAttributeTestTag
All Implemented Interfaces:
jakarta.servlet.jsp.tagext.DynamicAttributes, jakarta.servlet.jsp.tagext.IterationTag, jakarta.servlet.jsp.tagext.JspTag, jakarta.servlet.jsp.tagext.Tag, Serializable

public class ClassicAttributeTestTag extends jakarta.servlet.jsp.tagext.TagSupport implements jakarta.servlet.jsp.tagext.DynamicAttributes
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
     
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    If _fragment is not null, it validates the the attribute set was indeed a JspFragment.
    void
    Sets a dynamic attribute.
    void
    Sets _fragment.

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

    doAfterBody, doEndTag, 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

    • ClassicAttributeTestTag

      public ClassicAttributeTestTag()
  • Method Details

    • setFragment

      public void setFragment(Object o)
      Sets _fragment. This should be an instance of JspFragment.
      Parameters:
      o - - a JspFragment instance
    • setDynamicAttribute

      public void setDynamicAttribute(String s, String s1, Object o) throws jakarta.servlet.jsp.JspException
      Sets a dynamic attribute.
      Specified by:
      setDynamicAttribute in interface jakarta.servlet.jsp.tagext.DynamicAttributes
      Parameters:
      s - - the URL of the attribute
      s1 - - the attribute name
      o - - the attribute value
      Throws:
      jakarta.servlet.jsp.JspException - if an unexpected error occurs
    • doStartTag

      public int doStartTag() throws jakarta.servlet.jsp.JspException
      If _fragment is not null, it validates the the attribute set was indeed a JspFragment. If _dynamic is not null it validates the attribute is a String instance. If in either case the tests fails, a detailed message will be displayed.
      Specified by:
      doStartTag in interface jakarta.servlet.jsp.tagext.Tag
      Overrides:
      doStartTag in class jakarta.servlet.jsp.tagext.TagSupport
      Returns:
      SKIP_BODY
      Throws:
      jakarta.servlet.jsp.JspException - if an error occurs