Package org.apache.tiles.jsp.taglib
Class ImportAttributeTag
- java.lang.Object
-
- javax.servlet.jsp.tagext.SimpleTagSupport
-
- org.apache.tiles.jsp.taglib.ImportAttributeTag
-
- All Implemented Interfaces:
javax.servlet.jsp.tagext.JspTag,javax.servlet.jsp.tagext.SimpleTag
public class ImportAttributeTag extends javax.servlet.jsp.tagext.SimpleTagSupportImport attribute(s) in specified context.
Import attribute(s) to requested scope. Attribute name and scope are optional. If not specified, all attributes are imported in page scope. Once imported, an attribute can be used as any other beans from jsp contexts.
-
-
Constructor Summary
Constructors Constructor Description ImportAttributeTag()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description voiddoTag()java.lang.StringgetName()Getter for name property.java.lang.StringgetScope()Getter for scope property.java.lang.StringgetToName()Getter for toName property.booleanisIgnore()Getter for ignore property.voidsetIgnore(boolean ignore)Setter for ignore property.voidsetName(java.lang.String name)Setter for name property.voidsetScope(java.lang.String scope)Setter for scope property.voidsetToName(java.lang.String toName)Setter for toName property.
-
-
-
Method Detail
-
getName
public java.lang.String getName()
Getter for name property.- Returns:
- The name of the attribute to import. If it is
null, all the attributes will be imported.
-
setName
public void setName(java.lang.String name)
Setter for name property.- Parameters:
name- The name of the attribute to import. If it isnull, all the attributes will be imported.
-
getScope
public java.lang.String getScope()
Getter for scope property.- Returns:
- The scope into which the attribute(s) will be imported. If
null, the import will go in page scope.
-
setScope
public void setScope(java.lang.String scope)
Setter for scope property.- Parameters:
scope- The scope into which the attribute(s) will be imported. Ifnull, the import will go in page scope.
-
getToName
public java.lang.String getToName()
Getter for toName property.- Returns:
- The name of the attribute into which the attribute will be
imported. To be used in conjunction to
name. Ifnull, the value ofnamewill be used.
-
setToName
public void setToName(java.lang.String toName)
Setter for toName property.- Parameters:
toName- The name of the attribute into which the attribute will be imported. To be used in conjunction toname. Ifnull, the value ofnamewill be used.
-
isIgnore
public boolean isIgnore()
Getter for ignore property.- Returns:
- If
true, if the attribute is not present, the problem will be ignored.
-
setIgnore
public void setIgnore(boolean ignore)
Setter for ignore property.- Parameters:
ignore- Iftrue, if the attribute is not present, the problem will be ignored.
-
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
-
-