Package org.apache.tiles.jsp.taglib
Class UseAttributeTag
java.lang.Object
javax.servlet.jsp.tagext.SimpleTagSupport
org.apache.tiles.jsp.taglib.UseAttributeTag
- All Implemented Interfaces:
javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.tagext.SimpleTag
public class UseAttributeTag
extends javax.servlet.jsp.tagext.SimpleTagSupport
Exposes am attribute as a scripting variable within the page.
- Since:
- Tiles 1.0
- Version:
- $Rev: 1360373 $ $Date: 2012-07-12 05:52:00 +1000 (Thu, 12 Jul 2012) $
-
Nested Class Summary
Nested ClassesModifier and TypeClassDescriptionstatic classImplementation ofTagExtraInfowhich 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 javax.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 totrueto ignore missing attributes silently
-
isIgnore
public boolean isIgnore()Get ignore flag.- Returns:
- default:
false: Exception is thrown when attribute is not found, set totrueto 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 interfacejavax.servlet.jsp.tagext.SimpleTag- Overrides:
doTagin classjavax.servlet.jsp.tagext.SimpleTagSupport- Throws:
javax.servlet.jsp.JspExceptionIOException
-
getScriptingVariable
Returns the scripting variable to use.- Returns:
- The scripting variable.
-