Package org.apache.tiles.web.jsp.taglib
Class AddAttributeTag
java.lang.Object
jakarta.servlet.jsp.tagext.SimpleTagSupport
org.apache.tiles.web.jsp.taglib.AddAttributeTag
- All Implemented Interfaces:
- jakarta.servlet.jsp.tagext.JspTag,- jakarta.servlet.jsp.tagext.SimpleTag
public class AddAttributeTag
extends jakarta.servlet.jsp.tagext.SimpleTagSupport
Add an element to the surrounding list. Equivalent to 'putAttribute', but for list element.
Add an element to the surrounding list. This tag can only be used inside 'putListAttribute' or 'addListAttribute' tags. Value can come from a direct assignment (value="aValue")
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoiddoTag()Getter for expression property.getRole()Getter for role property.getType()Getter for type property.getValue()Getter for value property.voidsetExpression(String expression) Setter for expression property.voidSetter for role property.voidSetter for type property.voidSetter for value property.Methods inherited from class jakarta.servlet.jsp.tagext.SimpleTagSupportfindAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent
- 
Constructor Details- 
AddAttributeTagpublic AddAttributeTag()
 
- 
- 
Method Details- 
getValueGetter for value property.- Returns:
- The value of the attribute. Use this parameter, or expression, or body.
 
- 
setValueSetter for value property.- Parameters:
- value- The value of the attribute. Use this parameter, or expression, or body.
 
- 
getExpressionGetter for expression property.- Returns:
- The expression to calculate the value from. Use this parameter, or value, or body.
 
- 
setExpressionSetter for expression property.- Parameters:
- expression- The expression to calculate the value from. Use this parameter, or value, or body.
 
- 
getRoleGetter for role property.- Returns:
- A comma-separated list of roles. If present, the attribute will be rendered only if the current user belongs to one of the roles.
 
- 
setRoleSetter for role property.- Parameters:
- role- A comma-separated list of roles. If present, the attribute will be rendered only if the current user belongs to one of the roles.
 
- 
getTypeGetter for type property.- Returns:
- The type (renderer) of the attribute.
 
- 
setTypeSetter for type property.- Parameters:
- type- The type (renderer) of the attribute.
 
- 
doTag- Specified by:
- doTagin interface- jakarta.servlet.jsp.tagext.SimpleTag
- Overrides:
- doTagin class- jakarta.servlet.jsp.tagext.SimpleTagSupport
- Throws:
- jakarta.servlet.jsp.JspException
- IOException
 
 
-