Class AbstractIfTag

    • Field Summary

      • 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
      AbstractIfTag()  
    • Method Summary

      All Methods Instance Methods Abstract Methods Concrete Methods 
      Modifier and Type Method Description
      int doEndTag()
      Called after the JSP engine finished processing the tag.
      int doStartTag()
      Process the start tag for this instance.
      boolean getCondition()
      Get the value of the condition once it has been evaluated.
      abstract AbstractIfTagHelper getHelper()
      Method for retrieving the helper related with the tag.
      • Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport

        doAfterBody, doInitBody, getBodyContent, getPreviousOut, release, 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
    • Constructor Detail

      • AbstractIfTag

        public AbstractIfTag()
    • Method Detail

      • doStartTag

        public int doStartTag()
                       throws javax.servlet.jsp.JspException
        Process the start tag for this instance. The doStartTag() method assumes that all setter methods have been invoked before.

        Note: This method returns EVAL_BODY_INCLUDE, which will cause the JSP container to evaluate this tag's body directly into the existing out stream. If a subclass needs access to the body contents, it can override this method to call the superclass method and then return EVAL_BODY_BUFFERED. The body contents can then be accessed from an overridden doAfterBody method. See the JSP documentation for more details.
        Specified by:
        doStartTag in interface javax.servlet.jsp.tagext.Tag
        Overrides:
        doStartTag in class javax.servlet.jsp.tagext.BodyTagSupport
        Returns:
        EVAL_BODY_INCLUDE.
        Throws:
        javax.servlet.jsp.JspException - if an error is thrown when displaying the custom tag contents
      • doEndTag

        public int doEndTag()
                     throws javax.servlet.jsp.JspException,
                            javax.servlet.jsp.JspException
        Called after the JSP engine finished processing the tag. It's only objective is to clear up the tag after it has been rendered. If overwritten by a child instance, it should itself take care of calling the releaseTag() method.
        Specified by:
        doEndTag in interface javax.servlet.jsp.tagext.Tag
        Overrides:
        doEndTag in class javax.servlet.jsp.tagext.BodyTagSupport
        Returns:
        EVAL_PAGE if the JSP engine should continue evaluating the JSP page, otherwise return SKIP_PAGE.
        Throws:
        javax.servlet.jsp.JspException - if an error is risen when displaying the custom tag contents
      • getCondition

        public boolean getCondition()
        Get the value of the condition once it has been evaluated.
        Returns:
        a boolean value with the result of the evaluation of the condition requested.