Expresso 5-6

com.jcorporate.expresso.ext.taglib
Class AttributeTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended bycom.jcorporate.expresso.ext.taglib.ExpressoTagSupport
          extended bycom.jcorporate.expresso.ext.taglib.AttributeTag
All Implemented Interfaces:
IterationTag, Serializable, Tag

public class AttributeTag
extends ExpressoTagSupport

The AttributeTag can be used to display attributes from Input or Output objects. The AttributeTag can either be used stand-alone, in which case all the arguments are required, or nested within and OutputTag or InputTag, in which case only the attribute name must be specified.

Note: Arguments specified in the tag override the arguments of any parent class.

Usage example when tag is not nested:



Usage example when nested within an output:

Content Area:
Attribute:
Nested Output:



Author:
Adam Rossi, PlatinumSolutions
See Also:
Serialized Form

Field Summary
 
Fields inherited from class com.jcorporate.expresso.ext.taglib.ExpressoTagSupport
ctlrResp, response
 
Fields inherited from class javax.servlet.jsp.tagext.TagSupport
id, pageContext
 
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
AttributeTag()
           
 
Method Summary
 int doEndTag()
          Standard doEndTag.
 int doStartTag()
           
 String getControllerElement()
          GET / SET controllerElement Retrieve the controller element name for the attribute tag
 String getName()
           
 String getType()
           
 void setControllerElement(String newControllerElement)
           
 void setName(String newName)
          GET / SET Name
 void setType(String newType)
          GET / SET type
 
Methods inherited from class com.jcorporate.expresso.ext.taglib.ExpressoTagSupport
getAncestor, getContainer, getControllerResponse, getResponse, setResponse
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
doAfterBody, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

AttributeTag

public AttributeTag()
Method Detail

doStartTag

public int doStartTag()
               throws JspException
Throws:
JspException

doEndTag

public int doEndTag()
             throws JspTagException
Standard doEndTag.

Returns:
int
Throws:
JspTagException

getControllerElement

public String getControllerElement()
GET / SET controllerElement Retrieve the controller element name for the attribute tag

Returns:
java.lang.String

getName

public String getName()

getType

public String getType()

setControllerElement

public void setControllerElement(String newControllerElement)

setName

public void setName(String newName)
GET / SET Name

Parameters:
newName - the new name of the attribute

setType

public void setType(String newType)
GET / SET type

Parameters:
newType - the new type of the attribute

Expresso 5-6

Please see www.jcorporate.com for information about new Expresso releases.