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 class
Implementation ofTagExtraInfo
which identifies the scripting object(s) to be made visible. -
Constructor Summary
Constructors -
Method Summary
Modifier and TypeMethodDescriptionvoid
doTag()
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.boolean
isIgnore()
Get ignore flag.void
setClassname
(String name) Set the class name.void
Sets the id of the imported scripting variable.void
setIgnore
(boolean ignore) Set ignore flag.void
Set the name.void
Set 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 totrue
to ignore missing attributes silently
-
isIgnore
public boolean isIgnore()Get ignore flag.- Returns:
- default:
false
: Exception is thrown when attribute is not found, set totrue
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:
doTag
in interfacejavax.servlet.jsp.tagext.SimpleTag
- Overrides:
doTag
in classjavax.servlet.jsp.tagext.SimpleTagSupport
- Throws:
javax.servlet.jsp.JspException
IOException
-
getScriptingVariable
Returns the scripting variable to use.- Returns:
- The scripting variable.
-