org.apache.struts.taglib.tiles
Class GetAttributeTag

java.lang.Object
  |
  +--javax.servlet.jsp.tagext.TagSupport
        |
        +--org.apache.struts.taglib.tiles.GetAttributeTag
All Implemented Interfaces:
ComponentConstants, javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class GetAttributeTag
extends javax.servlet.jsp.tagext.TagSupport
implements ComponentConstants

Retrieve the value of the specified component/template attribute property, and render it to the current JspWriter as a String. The usual toString() conversions is applied on found value.

See Also:
Serialized Form

Field Summary
private  java.lang.String attribute
           
private  boolean isErrorIgnored
          Do we ignore error if attribute is not found.
private  java.lang.String role
          Role attribute
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
Fields inherited from interface org.apache.struts.taglib.tiles.ComponentConstants
COMPONENT_CONTEXT, COMPONENT_SCOPE, EXCEPTION_KEY, LOCALE_KEY
 
Fields inherited from interface javax.servlet.jsp.tagext.IterationTag
EVAL_BODY_AGAIN
 
Fields inherited from interface javax.servlet.jsp.tagext.Tag
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE
 
Constructor Summary
GetAttributeTag()
          default constructor
 
Method Summary
 int doEndTag()
          Set attribute
 java.lang.String getAttribute()
          Get property
 boolean getIgnore()
          Get the property.
 java.lang.String getName()
          Get property
 java.lang.String getRole()
          Get property
 void release()
          Release all allocated resources.
 void setAttribute(java.lang.String attribute)
          Set attribute
 void setIgnore(boolean ignore)
          Set attribute
 void setName(java.lang.String value)
          Set attribute
 void setRole(java.lang.String role)
          Set role attribute
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, doStartTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.IterationTag
 

Field Detail

attribute

private java.lang.String attribute

role

private java.lang.String role
Role attribute


isErrorIgnored

private boolean isErrorIgnored
Do we ignore error if attribute is not found. Default value is false, which throw an exception.

Constructor Detail

GetAttributeTag

public GetAttributeTag()
default constructor

Method Detail

release

public void release()
Release all allocated resources.

Specified by:
release in interface javax.servlet.jsp.tagext.Tag
Overrides:
release in class javax.servlet.jsp.tagext.TagSupport

setAttribute

public void setAttribute(java.lang.String attribute)
Set attribute


getAttribute

public java.lang.String getAttribute()
Get property


setName

public void setName(java.lang.String value)
Set attribute


getName

public java.lang.String getName()
Get property


setIgnore

public void setIgnore(boolean ignore)
Set attribute


getIgnore

public boolean getIgnore()
Get the property.


setRole

public void setRole(java.lang.String role)
Set role attribute


getRole

public java.lang.String getRole()
Get property


doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Set attribute

Specified by:
doEndTag in interface javax.servlet.jsp.tagext.Tag
Overrides:
doEndTag in class javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.JspException


Copyright 2000-2002 - Cedric Dumoulin and Apache Software Foundation