java.lang.Object
jakarta.servlet.jsp.tagext.TagSupport
ee.jakarta.tck.pages.api.jakarta_servlet.jsp.tagext.dynamicattributes.DynamicAttributesTag
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 DynamicAttributesTag 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
    Default constructor.
  • Method Summary

    Modifier and Type
    Method
    Description
    int
    Validates that setDynamicAttributes is properly called and will cause a test failure if setDynamicAttribute throws a JspException and doStartTag() is called.
    void
    setDynamicAttribute(String uri, String localName, Object value)
    Called by the container if a tag has an attribute present and not declared by the TLD.
    void
    setThrowException(boolean throwException)
    Sets the _throwException instance variable.

    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

    • DynamicAttributesTag

      public DynamicAttributesTag()
      Default constructor.
  • Method Details

    • setThrowException

      public void setThrowException(boolean throwException)
      Sets the _throwException instance variable. If true, when setDynamicAttribute() is called by the container, a JspException will be thrown.
      Parameters:
      throwException -
    • doStartTag

      public int doStartTag() throws jakarta.servlet.jsp.JspException
      Validates that setDynamicAttributes is properly called and will cause a test failure if setDynamicAttribute throws a JspException and doStartTag() is called.
      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
    • setDynamicAttribute

      public void setDynamicAttribute(String uri, String localName, Object value) throws jakarta.servlet.jsp.JspException
      Called by the container if a tag has an attribute present and not declared by the TLD. If _throwException is true, a JspException will be thrown by this method.
      Specified by:
      setDynamicAttribute in interface jakarta.servlet.jsp.tagext.DynamicAttributes
      Parameters:
      uri - - the namespace of the attribute (if any)
      localName - - the attribute name
      value - - the attribute value
      Throws:
      jakarta.servlet.jsp.JspException - if _throwException is true