org.apache.strutsel.taglib.tiles
Class ELAddTag

java.lang.Object
  extended byjavax.servlet.jsp.tagext.TagSupport
      extended byjavax.servlet.jsp.tagext.BodyTagSupport
          extended byorg.apache.struts.taglib.tiles.PutTag
              extended byorg.apache.struts.taglib.tiles.AddTag
                  extended byorg.apache.strutsel.taglib.tiles.ELAddTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, org.apache.struts.taglib.tiles.ComponentConstants, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

public class ELAddTag
extends org.apache.struts.taglib.tiles.AddTag

Adds an element to the surrounding list tag. Same syntax as <put>.

This class is a subclass of the class org.apache.struts.taglib.tiles.AddTag which provides most of the described functionality. This subclass allows all attribute values to be specified as expressions utilizing the JavaServer Pages Standard Library expression language.

Version:
$Rev: 54933 $
See Also:
Serialized Form

Field Summary
private  java.lang.String beanNameExpr
          Instance variable mapped to "beanName" tag attribute.
private  java.lang.String beanPropertyExpr
          Instance variable mapped to "beanProperty" tag attribute.
private  java.lang.String beanScopeExpr
          Instance variable mapped to "beanScope" tag attribute.
private  java.lang.String contentExpr
          Instance variable mapped to "content" tag attribute.
private  java.lang.String directExpr
          Instance variable mapped to "direct" tag attribute.
private  java.lang.String roleExpr
          Instance variable mapped to "role" tag attribute.
private  java.lang.String typeExpr
          Instance variable mapped to "type" tag attribute.
private  java.lang.String valueExpr
          Instance variable mapped to "value" tag attribute.
 
Fields inherited from class org.apache.struts.taglib.tiles.PutTag
attributeName, body, realValue
 
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport
bodyContent
 
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.BodyTag
EVAL_BODY_BUFFERED, EVAL_BODY_TAG
 
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
ELAddTag()
           
 
Method Summary
 int doStartTag()
          Process the start tag.
private  void evaluateExpressions()
          Processes all attribute values which use the JSTL expression evaluation engine to determine their values.
 java.lang.String getBeanNameExpr()
          Getter method for "beanName" tag attribute.
 java.lang.String getBeanPropertyExpr()
          Getter method for "beanProperty" tag attribute.
 java.lang.String getBeanScopeExpr()
          Getter method for "beanScope" tag attribute.
 java.lang.String getContentExpr()
          Getter method for "content" tag attribute.
 java.lang.String getDirectExpr()
          Getter method for "direct" tag attribute.
 java.lang.String getRoleExpr()
          Getter method for "role" tag attribute.
 java.lang.String getTypeExpr()
          Getter method for "type" tag attribute.
 java.lang.String getValueExpr()
          Getter method for "value" tag attribute.
 void release()
          Resets attribute values for tag reuse.
 void setBeanNameExpr(java.lang.String beanNameExpr)
          Setter method for "beanName" tag attribute.
 void setBeanPropertyExpr(java.lang.String beanPropertyExpr)
          Setter method for "beanProperty" tag attribute.
 void setBeanScopeExpr(java.lang.String beanScopeExpr)
          Setter method for "beanScope" tag attribute.
 void setContentExpr(java.lang.String contentExpr)
          Setter method for "content" tag attribute.
 void setDirectExpr(java.lang.String directExpr)
          Setter method for "direct" tag attribute.
 void setRoleExpr(java.lang.String roleExpr)
          Setter method for "role" tag attribute.
 void setTypeExpr(java.lang.String typeExpr)
          Setter method for "type" tag attribute.
 void setValueExpr(java.lang.String valueExpr)
          Setter method for "value" tag attribute.
 
Methods inherited from class org.apache.struts.taglib.tiles.AddTag
callParent, findEnclosingPutListTagParent
 
Methods inherited from class org.apache.struts.taglib.tiles.PutTag
computeRealValue, doAfterBody, doEndTag, findEnclosingPutTagParent, getBeanName, getBeanProperty, getBeanScope, getContent, getName, getRealValue, getRealValueFromBean, getRole, getType, getValue, releaseInternal, setBeanName, setBeanProperty, setBeanScope, setContent, setContent, setDirect, setName, setObjectValue, setRole, setType, setValue, setValue
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doInitBody, getBodyContent, getPreviousOut, setBodyContent
 
Methods inherited from class javax.servlet.jsp.tagext.TagSupport
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.Tag
getParent, setPageContext, setParent
 

Field Detail

valueExpr

private java.lang.String valueExpr
Instance variable mapped to "value" tag attribute. (Mapping set in associated BeanInfo class.)


contentExpr

private java.lang.String contentExpr
Instance variable mapped to "content" tag attribute. (Mapping set in associated BeanInfo class.)


directExpr

private java.lang.String directExpr
Instance variable mapped to "direct" tag attribute. (Mapping set in associated BeanInfo class.)


typeExpr

private java.lang.String typeExpr
Instance variable mapped to "type" tag attribute. (Mapping set in associated BeanInfo class.)


beanNameExpr

private java.lang.String beanNameExpr
Instance variable mapped to "beanName" tag attribute. (Mapping set in associated BeanInfo class.)


beanPropertyExpr

private java.lang.String beanPropertyExpr
Instance variable mapped to "beanProperty" tag attribute. (Mapping set in associated BeanInfo class.)


beanScopeExpr

private java.lang.String beanScopeExpr
Instance variable mapped to "beanScope" tag attribute. (Mapping set in associated BeanInfo class.)


roleExpr

private java.lang.String roleExpr
Instance variable mapped to "role" tag attribute. (Mapping set in associated BeanInfo class.)

Constructor Detail

ELAddTag

public ELAddTag()
Method Detail

getValueExpr

public java.lang.String getValueExpr()
Getter method for "value" tag attribute. (Mapping set in associated BeanInfo class.)


getContentExpr

public java.lang.String getContentExpr()
Getter method for "content" tag attribute. (Mapping set in associated BeanInfo class.)


getDirectExpr

public java.lang.String getDirectExpr()
Getter method for "direct" tag attribute. (Mapping set in associated BeanInfo class.)


getTypeExpr

public java.lang.String getTypeExpr()
Getter method for "type" tag attribute. (Mapping set in associated BeanInfo class.)


getBeanNameExpr

public java.lang.String getBeanNameExpr()
Getter method for "beanName" tag attribute. (Mapping set in associated BeanInfo class.)


getBeanPropertyExpr

public java.lang.String getBeanPropertyExpr()
Getter method for "beanProperty" tag attribute. (Mapping set in associated BeanInfo class.)


getBeanScopeExpr

public java.lang.String getBeanScopeExpr()
Getter method for "beanScope" tag attribute. (Mapping set in associated BeanInfo class.)


getRoleExpr

public java.lang.String getRoleExpr()
Getter method for "role" tag attribute. (Mapping set in associated BeanInfo class.)


setValueExpr

public void setValueExpr(java.lang.String valueExpr)
Setter method for "value" tag attribute. (Mapping set in associated BeanInfo class.)


setContentExpr

public void setContentExpr(java.lang.String contentExpr)
Setter method for "content" tag attribute. (Mapping set in associated BeanInfo class.)


setDirectExpr

public void setDirectExpr(java.lang.String directExpr)
Setter method for "direct" tag attribute. (Mapping set in associated BeanInfo class.)


setTypeExpr

public void setTypeExpr(java.lang.String typeExpr)
Setter method for "type" tag attribute. (Mapping set in associated BeanInfo class.)


setBeanNameExpr

public void setBeanNameExpr(java.lang.String beanNameExpr)
Setter method for "beanName" tag attribute. (Mapping set in associated BeanInfo class.)


setBeanPropertyExpr

public void setBeanPropertyExpr(java.lang.String beanPropertyExpr)
Setter method for "beanProperty" tag attribute. (Mapping set in associated BeanInfo class.)


setBeanScopeExpr

public void setBeanScopeExpr(java.lang.String beanScopeExpr)
Setter method for "beanScope" tag attribute. (Mapping set in associated BeanInfo class.)


setRoleExpr

public void setRoleExpr(java.lang.String roleExpr)
Setter method for "role" tag attribute. (Mapping set in associated BeanInfo class.)


release

public void release()
Resets attribute values for tag reuse.


doStartTag

public int doStartTag()
               throws javax.servlet.jsp.JspException
Process the start tag.

Throws:
javax.servlet.jsp.JspException - if a JSP exception has occurred

evaluateExpressions

private void evaluateExpressions()
                          throws javax.servlet.jsp.JspException
Processes all attribute values which use the JSTL expression evaluation engine to determine their values.

Throws:
javax.servlet.jsp.JspException - if a JSP exception has occurred


Copyright ? 2000-2005 - The Apache Software Foundation