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.SimpleTagSupportExposes 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 Classes Modifier and Type Class Description static classUseAttributeTag.TeiImplementation ofTagExtraInfowhich identifies the scripting object(s) to be made visible.
-
Constructor Summary
Constructors Constructor Description UseAttributeTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoTag()java.lang.StringgetClassname()Get class name.java.lang.StringgetId()Returns the id of the imported scripting variable.java.lang.StringgetName()Get the name.java.lang.StringgetScope()Get scope.java.lang.StringgetScriptingVariable()Returns the scripting variable to use.booleanisIgnore()Get ignore flag.voidsetClassname(java.lang.String name)Set the class name.voidsetId(java.lang.String id)Sets the id of the imported scripting variable.voidsetIgnore(boolean ignore)Set ignore flag.voidsetName(java.lang.String name)Set the name.voidsetScope(java.lang.String scope)Set the scope.
-
-
-
Method Detail
-
getId
public java.lang.String getId()
Returns the id of the imported scripting variable.- Returns:
- The id of the imported scripting variable.
- Since:
- 2.2.0
-
setId
public void setId(java.lang.String id)
Sets the id of the imported scripting variable.- Parameters:
id- The id of the imported scripting variable.- Since:
- 2.2.0
-
setScope
public void setScope(java.lang.String scope)
Set the scope.- Parameters:
scope- Scope.
-
getScope
public java.lang.String getScope()
Get scope.- Returns:
- Scope.
-
getName
public java.lang.String getName()
Get the name.- Returns:
- Name.
-
setName
public void setName(java.lang.String name)
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
public java.lang.String getClassname()
Get class name.- Returns:
- class name
-
setClassname
public void setClassname(java.lang.String name)
Set the class name.- Parameters:
name- The new class name.
-
doTag
public void doTag() throws javax.servlet.jsp.JspException, java.io.IOException- Specified by:
doTagin interfacejavax.servlet.jsp.tagext.SimpleTag- Overrides:
doTagin classjavax.servlet.jsp.tagext.SimpleTagSupport- Throws:
javax.servlet.jsp.JspExceptionjava.io.IOException
-
getScriptingVariable
public java.lang.String getScriptingVariable()
Returns the scripting variable to use.- Returns:
- The scripting variable.
-
-