public class AttributeTag
extends jakarta.servlet.jsp.tagext.TagSupport
Tag implementation that adds an attribute with a specified name and String value to the component whose tag it is nested inside, if the component does not already contain an attribute with the same name. This tag creates no output to the page currently being created.
| Constructor and Description |
|---|
AttributeTag() |
| Modifier and Type | Method and Description |
|---|---|
int |
doEndTag() |
int |
doStartTag()
Register the specified attribute name and value with the
UIComponent instance associated with our most
immediately surrounding UIComponentClassicTagBase instance, if this UIComponent does not already have
a value for the specified attribute name. |
void |
release()
Release references to any acquired resources.
|
void |
setName(jakarta.el.ValueExpression name)
Set the attribute name.
|
void |
setValue(jakarta.el.ValueExpression value)
Set the attribute value.
|
public void setName(jakarta.el.ValueExpression name)
Set the attribute name.
name - The new attribute namepublic void setValue(jakarta.el.ValueExpression value)
Set the attribute value.
value - The new attribute valuepublic int doStartTag()
throws jakarta.servlet.jsp.JspException
Register the specified attribute name and value with the UIComponent instance associated with our most
immediately surrounding UIComponentClassicTagBase instance, if this UIComponent does not already have
a value for the specified attribute name.
doStartTag in interface jakarta.servlet.jsp.tagext.TagdoStartTag in class jakarta.servlet.jsp.tagext.TagSupportjakarta.servlet.jsp.JspException - if a JSP error occurspublic int doEndTag()
throws jakarta.servlet.jsp.JspException
doEndTag in interface jakarta.servlet.jsp.tagext.TagdoEndTag in class jakarta.servlet.jsp.tagext.TagSupportjakarta.servlet.jsp.JspExceptionpublic void release()
Release references to any acquired resources.
release in interface jakarta.servlet.jsp.tagext.Tagrelease in class jakarta.servlet.jsp.tagext.TagSupportCopyright © 2010–2022 JBoss by Red Hat. All rights reserved.