org.apache.struts.taglib.tiles

Class UseAttributeTag

public class UseAttributeTag extends TagSupport

Custom tag exposing a component attribute to page.
Field Summary
StringattributeName
The attribute name to be exposed.
Stringclassname
Class name of object.
protected booleanisErrorIgnored
Are errors ignored.
intscope
The scope value.
StringscopeName
The scope name.
Method Summary
intdoEndTag()
Clean up after processing this enumeration.
intdoStartTag()
Expose the requested attribute from component context.
StringgetClassname()
Get class name.
booleangetIgnore()
Get ignore.
StringgetName()
Get name.
StringgetScope()
Get scope.
voidrelease()
Release all allocated resources.
voidsetClassname(String name)
Set the class name.
voidsetIgnore(boolean ignore)
Set ignore.
voidsetName(String value)
Set name.
voidsetScope(String scope)
Set the scope.

Field Detail

attributeName

private String attributeName
The attribute name to be exposed.

classname

private String classname
Class name of object.

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.

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 if a JSP exception has occurred

doStartTag

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

Throws: JspException if a JSP exception has occurred

getClassname

public String getClassname()
Get class name.

getIgnore

public boolean getIgnore()
Get ignore.

getName

public String getName()
Get name.

getScope

public String getScope()
Get scope.

release

public void release()
Release all allocated resources.

setClassname

public void setClassname(String name)
Set the class name.

Parameters: name The new class name.

setIgnore

public void setIgnore(boolean ignore)
Set ignore.

setName

public void setName(String value)
Set name.

setScope

public void setScope(String scope)
Set the scope.

Parameters: scope The new scope.

Copyright B) 2000-2008 - The Apache Software Foundation