org.apache.struts.taglib.tiles
Class ImportAttributeTag
TagSupport
org.apache.struts.taglib.tiles.ImportAttributeTag
public class ImportAttributeTag
extends TagSupport
Import attribute from component to requested scope.
Attribute name and scope are optional. If not specified, all component
attributes are imported in page scope.
protected boolean | isErrorIgnored - Are errors ignored.
|
private String | name - Class name of object.
|
private int | scope - The scope value.
|
private String | scopeName - The scope name.
|
int | doEndTag() - Clean up after processing this enumeration.
|
int | doStartTag() - Expose the requested property from component context.
|
boolean | getIgnore() - Get ignore flag.
|
String | getName() - Get the name.
|
String | getScope() - Get scope.
|
void | release() - Release all allocated resources.
|
void | setIgnore(boolean ignore) - Set ignore flag.
|
void | setName(String name) - Set the name.
|
void | setScope(String scope) - Set the scope.
|
isErrorIgnored
protected boolean isErrorIgnored
Are errors ignored. This is the property for attribute ignore
.
Default value is false
, which throws an exception.
Only "attribute not found" - errors are ignored.
name
private String name
Class name of object.
scope
private int scope
The scope value.
scopeName
private String scopeName
The scope name.
doEndTag
public int doEndTag()
throws JspException
Clean up after processing this enumeration.
doStartTag
public int doStartTag()
throws JspException
Expose the requested property from component context.
getIgnore
public boolean getIgnore()
Get ignore flag.
- default:
false
: Exception is thrown when attribute is not found, set to
true
to ignore missing attributes silently
getName
public String getName()
Get the name.
getScope
public String getScope()
Get scope.
release
public void release()
Release all allocated resources.
setIgnore
public void setIgnore(boolean ignore)
Set ignore flag.
ignore
- default: false
: Exception is thrown when attribute is not found, set to
true
to ignore missing attributes silently
setName
public void setName(String name)
Set the name.
setScope
public void setScope(String scope)
Set the scope.
Copyright B) 2000-2007 - The Apache Software Foundation