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, 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 TypeMethodDescriptionintIf _fragment is not null, it validates the the attribute set was indeed a JspFragment.voidsetDynamicAttribute(String s, String s1, Object o) Sets a dynamic attribute.voidSets _fragment.Methods inherited from class jakarta.servlet.jsp.tagext.TagSupport
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
-
Constructor Details
-
ClassicAttributeTestTag
public ClassicAttributeTestTag()
-
-
Method Details
-
setFragment
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:
setDynamicAttributein interfacejakarta.servlet.jsp.tagext.DynamicAttributes- Parameters:
s- - the URL of the attributes1- - the attribute nameo- - the attribute value- Throws:
jakarta.servlet.jsp.JspException- if an unexpected error occurs
-
doStartTag
public int doStartTag() throws jakarta.servlet.jsp.JspExceptionIf _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:
doStartTagin interfacejakarta.servlet.jsp.tagext.Tag- Overrides:
doStartTagin classjakarta.servlet.jsp.tagext.TagSupport- Returns:
- SKIP_BODY
- Throws:
jakarta.servlet.jsp.JspException- if an error occurs
-