Package org.apache.tiles.web.jsp.taglib
Class InsertAttributeTag
java.lang.Object
jakarta.servlet.jsp.tagext.SimpleTagSupport
org.apache.tiles.web.jsp.taglib.InsertAttributeTag
- All Implemented Interfaces:
- jakarta.servlet.jsp.tagext.JspTag,- jakarta.servlet.jsp.tagext.SimpleTag
public class InsertAttributeTag
extends jakarta.servlet.jsp.tagext.SimpleTagSupport
Inserts the value of an attribute into the page.
This tag can be flexibly used to insert the value of an attribute into a page. As in other usages in Tiles, every attribute can be determined to have a "type", either set explicitly when it was defined, or "computed". If the type is not explicit, then if the attribute value is a valid definition, it will be inserted as such. Otherwise, if it begins with a "/" character, it will be treated as a "template". Finally, if it has not otherwise been assigned a type, it will be treated as a String and included without any special handling.
Example :
     <tiles:insertAttribute name="body" />
 - 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoiddoTag()Getter for defaultValue property.Getter for defaultValueRole property.Getter for defaultValueType property.getName()Getter for name property.Getter for preparer property.getRole()Getter for role property.getValue()Getter for value property.booleanisFlush()Getter for flush property.booleanisIgnore()Getter for ignore property.voidsetDefaultValue(Object defaultValue) Setter for defaultValue property.voidsetDefaultValueRole(String defaultValueRole) Setter for defaultValueRole property.voidsetDefaultValueType(String defaultValueType) Setter for defaultValueType property.voidsetFlush(boolean flush) Setter for flush property.voidsetIgnore(boolean ignore) Setter for ignore property.voidSetter for name property.voidsetPreparer(String preparer) Setter for preparer property.voidSetter for role property.voidSetter for value property.Methods inherited from class jakarta.servlet.jsp.tagext.SimpleTagSupportfindAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent
- 
Constructor Details- 
InsertAttributeTagpublic InsertAttributeTag()
 
- 
- 
Method Details- 
isIgnorepublic boolean isIgnore()Getter for ignore property.- Returns:
- If true, if an exception happens during rendering, of if the attribute is null, the problem will be ignored.
 
- 
setIgnorepublic void setIgnore(boolean ignore) Setter for ignore property.- Parameters:
- ignore- If true, if an exception happens during rendering, of if the attribute is null, the problem will be ignored.
 
- 
getPreparerGetter for preparer property.- Returns:
- The preparer to invoke before rendering the attribute.
 
- 
setPreparerSetter for preparer property.- Parameters:
- preparer- The preparer to invoke before rendering the attribute.
 
- 
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.
 
- 
getDefaultValueGetter for defaultValue property.- Returns:
- The default value of the attribute. To use only if the attribute was not computed.
 
- 
setDefaultValueSetter for defaultValue property.- Parameters:
- defaultValue- The default value of the attribute. To use only if the attribute was not computed.
 
- 
getDefaultValueRoleGetter for defaultValueRole property.- Returns:
- The default comma-separated list of roles. To use only if the attribute was not computed.
 
- 
setDefaultValueRoleSetter for defaultValueRole property.- Parameters:
- defaultValueRole- The default comma-separated list of roles. To use only if the attribute was not computed.
 
- 
getDefaultValueTypeGetter for defaultValueType property.- Returns:
- The default type of the attribute. To use only if the attribute was not computed.
 
- 
setDefaultValueTypeSetter for defaultValueType property.- Parameters:
- defaultValueType- The default type of the attribute. To use only if the attribute was not computed.
 
- 
getNameGetter for name property.- Returns:
- The name of the attribute.
 
- 
setNameSetter for name property.- Parameters:
- name- The name of the attribute.
 
- 
getValueGetter for value property.- Returns:
- The attribute to use immediately, if not null.
 
- 
setValueSetter for value property.- Parameters:
- value- The attribute to use immediately, if not null.
 
- 
isFlushpublic boolean isFlush()Getter for flush property.- Returns:
- If true, the response will be flushed after the insert.
 
- 
setFlushpublic void setFlush(boolean flush) Setter for flush property.- Parameters:
- flush- If true, the response will be flushed after the insert.
 
- 
doTag- Specified by:
- doTagin interface- jakarta.servlet.jsp.tagext.SimpleTag
- Overrides:
- doTagin class- jakarta.servlet.jsp.tagext.SimpleTagSupport
- Throws:
- jakarta.servlet.jsp.JspException
- IOException
 
 
-