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 Summary
Nested ClassesModifier and TypeClassDescriptionstatic classImplementation of TagExtraInfo which identifies the scripting object(s) to be made visible. -
Constructor Summary
Constructors -
Method Summary
Modifier 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.SimpleTagSupport
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent
-
Constructor Details
-
UseAttributeTag
public UseAttributeTag()
-
-
Method Details
-
getId
Returns the id of the imported scripting variable.- Returns:
- The id of the imported scripting variable.
- Since:
- 2.2.0
-
setId
Sets the id of the imported scripting variable.- Parameters:
id- The id of the imported scripting variable.- Since:
- 2.2.0
-
setScope
Set the scope.- Parameters:
scope- Scope.
-
getScope
Get scope.- Returns:
- Scope.
-
getName
Get the name.- Returns:
- Name.
-
setName
Set the name.- Parameters:
name- The new name
-
setIgnore
public 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
-
isIgnore
public boolean isIgnore()Get ignore flag.- Returns:
- default: false: Exception is thrown when attribute is not found, set to true to ignore missing attributes silently
-
getClassname
Get class name.- Returns:
- class name
-
setClassname
Set the class name.- Parameters:
name- The new class name.
-
doTag
- Specified by:
doTagin interfacejakarta.servlet.jsp.tagext.SimpleTag- Overrides:
doTagin classjakarta.servlet.jsp.tagext.SimpleTagSupport- Throws:
jakarta.servlet.jsp.JspExceptionIOException
-
getScriptingVariable
Returns the scripting variable to use.- Returns:
- The scripting variable.
-