Docjar: A Java Source and Docuemnt Enginecom.*    java.*    javax.*    org.*    all    new    plug-in

Quick Search    Search Deep

org.apache.strutsel.taglib.tiles
Class ELPutTag  view ELPutTag download ELPutTag.java

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.strutsel.taglib.tiles.ELPutTag
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 ELPutTag
extends org.apache.struts.taglib.tiles.PutTag

Put an attribute in enclosing attribute container tag. Enclosing attribute container tag can be : <insert> or <definition>. Exception is thrown if no appropriate tag can be found. Put tag can have following atributes :

    • name : Name of the attribute
      value | content : value to put as attribute
      type : value type. Only valid if value is a String and is set by value="something" or by a bean. Possible type are : string (value is used as direct string), page | template (value is used as a page url to insert), definition (value is used as a definition name to insert)
      direct : Specify if value is to be used as a direct string or as a page url to insert. This is another way to specify the type. It only apply if value is set as a string, and type is not present.
      beanName : Name of a bean used for setting value. Only valid if value is not set. If property is specified, value come from bean's property. Otherwise, bean itself is used for value.
      beanProperty : Name of the property used for retrieving value.
      beanScope : Scope containing bean.
      role : Role to check when 'insert' will be called. If enclosing tag is <insert>, role is checked immediately. If enclosing tag is <definition>, role will be checked when this definition will be inserted.
  • Value can also come from tag body. Tag body is taken into account only if value is not set by one of the tag attributes. In this case Attribute type is "string", unless tag body define another type.

    This class is a subclass of the class org.apache.struts.taglib.tiles.PutTag 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 $

    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 nameExpr
              Instance variable mapped to "name" 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
    ELPutTag()
               
     
    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 getNameExpr()
              Getter method for "name" 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 setNameExpr(java.lang.String nameExpr)
              Setter method for "name" 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.PutTag
    callParent, 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

    nameExpr

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


    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

    ELPutTag

    public ELPutTag()
    Method Detail

    getNameExpr

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


    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.)


    setNameExpr

    public void setNameExpr(java.lang.String nameExpr)
    Setter method for "name" 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.


    evaluateExpressions

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