public class ImportAttributeTag
extends javax.servlet.jsp.tagext.SimpleTagSupport
Import 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 and Description |
---|
ImportAttributeTag() |
Modifier and Type | Method and Description |
---|---|
void |
doTag() |
String |
getName()
Getter for name property.
|
String |
getScope()
Getter for scope property.
|
String |
getToName()
Getter for toName property.
|
boolean |
isIgnore()
Getter for ignore property.
|
void |
setIgnore(boolean ignore)
Setter for ignore property.
|
void |
setName(String name)
Setter for name property.
|
void |
setScope(String scope)
Setter for scope property.
|
void |
setToName(String toName)
Setter for toName property.
|
public String getName()
null
, all the attributes will be imported.public void setName(String name)
name
- The name of the attribute to import. If it is
null
, all the attributes will be imported.public String getScope()
null
, the import will go in page scope.public void setScope(String scope)
scope
- The scope into which the attribute(s) will be imported. If
null
, the import will go in page scope.public String getToName()
name
. If
null
, the value of name
will be used.public void setToName(String toName)
toName
- The name of the attribute into which the attribute will be
imported. To be used in conjunction to name
. If
null
, the value of name
will be used.public boolean isIgnore()
true
, if the attribute is not present, the
problem will be ignored.public void setIgnore(boolean ignore)
ignore
- If true
, if the attribute is not present, the
problem will be ignored.public void doTag() throws javax.servlet.jsp.JspException, IOException
doTag
in interface javax.servlet.jsp.tagext.SimpleTag
doTag
in class javax.servlet.jsp.tagext.SimpleTagSupport
javax.servlet.jsp.JspException
IOException
Copyright © 2001-2017 The Apache Software Foundation. All Rights Reserved.