org.apache.struts.taglib.tiles

Class ImportAttributeTag


public final 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.

Field Summary

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.

Method Summary

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.

Field Details

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.

Method Details

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.

Returns:
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.

Returns:
Name.


getScope

public String getScope()
Get scope.

Returns:
Scope.


release

public void release()
Release all allocated resources.


setIgnore

public void setIgnore(boolean ignore)
Set ignore flag.

Parameters:
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.

Parameters:
name - The new name


setScope

public void setScope(String scope)
Set the scope.

Parameters:
scope - Scope.


Copyright B) 2000-2005 - Apache Software Foundation