Class SetTag

  • All Implemented Interfaces:
    java.io.Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.Tag

    public class SetTag
    extends SetSupport
    JSTL 1.0 compatible version of <set> that accepts expressions for attribute values.
    See Also:
    Serialized Form
    • Field Summary

      Fields 
      Modifier and Type Field Description
      private java.lang.String propertyExpression  
      private java.lang.String targetExpression  
      private java.lang.String valueExpression  
      private boolean valueSpecified  
      • 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 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

      Constructors 
      Constructor Description
      SetTag()  
    • Method Summary

      All Methods Instance Methods Concrete Methods 
      Modifier and Type Method Description
      protected java.lang.String evalProperty()
      Evaluate the property attribute.
      protected java.lang.Object evalTarget()
      Evaluate the target attribute.
      protected java.lang.Object evalValue()
      Evaluate the value attribute.
      protected boolean isValueSpecified()
      Indicates that the value attribute was specified.
      void release()  
      void setProperty​(java.lang.String property)  
      void setTarget​(java.lang.String target)  
      void setValue​(java.lang.String value)  
      • Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport

        doAfterBody, doInitBody, doStartTag, 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

      • valueSpecified

        private boolean valueSpecified
      • valueExpression

        private java.lang.String valueExpression
      • targetExpression

        private java.lang.String targetExpression
      • propertyExpression

        private java.lang.String propertyExpression
    • Constructor Detail

      • SetTag

        public SetTag()
    • Method Detail

      • setValue

        public void setValue​(java.lang.String value)
      • setTarget

        public void setTarget​(java.lang.String target)
      • setProperty

        public void setProperty​(java.lang.String property)
      • release

        public void release()
        Specified by:
        release in interface javax.servlet.jsp.tagext.Tag
        Overrides:
        release in class SetSupport
      • isValueSpecified

        protected boolean isValueSpecified()
        Description copied from class: SetSupport
        Indicates that the value attribute was specified. If no value attribute is supplied then the value is taken from the tag's body content.
        Specified by:
        isValueSpecified in class SetSupport
        Returns:
        true if the value attribute was specified
      • evalValue

        protected java.lang.Object evalValue()
                                      throws javax.servlet.jsp.JspException
        Description copied from class: SetSupport
        Evaluate the value attribute.
        Specified by:
        evalValue in class SetSupport
        Returns:
        the result of evaluating the value attribute
        Throws:
        javax.servlet.jsp.JspException - if there was a problem evaluating the expression
      • evalTarget

        protected java.lang.Object evalTarget()
                                       throws javax.servlet.jsp.JspException
        Description copied from class: SetSupport
        Evaluate the target attribute.
        Specified by:
        evalTarget in class SetSupport
        Returns:
        the result of evaluating the target attribute
        Throws:
        javax.servlet.jsp.JspException - if there was a problem evaluating the expression
      • evalProperty

        protected java.lang.String evalProperty()
                                         throws javax.servlet.jsp.JspException
        Description copied from class: SetSupport
        Evaluate the property attribute.
        Specified by:
        evalProperty in class SetSupport
        Returns:
        the result of evaluating the property attribute
        Throws:
        javax.servlet.jsp.JspException - if there was a problem evaluating the expression