org.apache.struts.taglib.tiles

Class 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.
Field Summary
protected booleanisErrorIgnored
Are errors ignored.
Stringname
Class name of object.
intscope
The scope value.
StringscopeName
The scope name.
Method Summary
intdoEndTag()
Clean up after processing this enumeration.
intdoStartTag()
Expose the requested property from component context.
booleangetIgnore()
Get ignore flag.
StringgetName()
Get the name.
StringgetScope()
Get scope.
voidrelease()
Release all allocated resources.
voidsetIgnore(boolean ignore)
Set ignore flag.
voidsetName(String name)
Set the name.
voidsetScope(String scope)
Set the scope.

Field Detail

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 Detail

doEndTag

public int doEndTag()
Clean up after processing this enumeration.

Throws: JspException On errors processing tag.

doStartTag

public int doStartTag()
Expose the requested property from component context.

Throws: JspException On errors processing tag.

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 © 2000-2008 - The Apache Software Foundation