Package org.apache.tiles.web.jsp.taglib
Class UseAttributeTag
java.lang.Object
jakarta.servlet.jsp.tagext.SimpleTagSupport
org.apache.tiles.web.jsp.taglib.UseAttributeTag
- All Implemented Interfaces:
- jakarta.servlet.jsp.tagext.JspTag,- jakarta.servlet.jsp.tagext.SimpleTag
public class UseAttributeTag
extends jakarta.servlet.jsp.tagext.SimpleTagSupport
Exposes am attribute as a scripting variable within the page.
- Since:
- Tiles 1.0
- 
Nested Class SummaryNested ClassesModifier and TypeClassDescriptionstatic classImplementation of TagExtraInfo which identifies the scripting object(s) to be made visible.
- 
Constructor SummaryConstructors
- 
Method SummaryModifier and TypeMethodDescriptionvoiddoTag()Get class name.getId()Returns the id of the imported scripting variable.getName()Get the name.getScope()Get scope.Returns the scripting variable to use.booleanisIgnore()Get ignore flag.voidsetClassname(String name) Set the class name.voidSets the id of the imported scripting variable.voidsetIgnore(boolean ignore) Set ignore flag.voidSet the name.voidSet the scope.Methods inherited from class jakarta.servlet.jsp.tagext.SimpleTagSupportfindAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent
- 
Constructor Details- 
UseAttributeTagpublic UseAttributeTag()
 
- 
- 
Method Details- 
getIdReturns the id of the imported scripting variable.- Returns:
- The id of the imported scripting variable.
- Since:
- 2.2.0
 
- 
setIdSets the id of the imported scripting variable.- Parameters:
- id- The id of the imported scripting variable.
- Since:
- 2.2.0
 
- 
setScopeSet the scope.- Parameters:
- scope- Scope.
 
- 
getScopeGet scope.- Returns:
- Scope.
 
- 
getNameGet the name.- Returns:
- Name.
 
- 
setNameSet the name.- Parameters:
- name- The new name
 
- 
setIgnorepublic void setIgnore(boolean ignore) Set ignore flag.- Parameters:
- ignore- default: false: Exception is thrown when attribute is not found, set to true to ignore missing attributes silently
 
- 
isIgnorepublic boolean isIgnore()Get ignore flag.- Returns:
- default: false: Exception is thrown when attribute is not found, set to true to ignore missing attributes silently
 
- 
getClassnameGet class name.- Returns:
- class name
 
- 
setClassnameSet the class name.- Parameters:
- name- The new class name.
 
- 
doTag- Specified by:
- doTagin interface- jakarta.servlet.jsp.tagext.SimpleTag
- Overrides:
- doTagin class- jakarta.servlet.jsp.tagext.SimpleTagSupport
- Throws:
- jakarta.servlet.jsp.JspException
- IOException
 
- 
getScriptingVariableReturns the scripting variable to use.- Returns:
- The scripting variable.
 
 
-