Class AbstractNoBodyTag

    • Field Summary

      • 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
    • 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.
      abstract AbstractNoBodyTagHelper getHelper()
      Method for retrieving the helper related with the tag.
      void release()
      Utility method for cleaning up the properties on the custom tag instance.
      • Methods inherited from class javax.servlet.jsp.tagext.TagSupport

        doAfterBody, 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
    • Constructor Detail

      • AbstractNoBodyTag

        public AbstractNoBodyTag()
    • Method Detail

      • getHelper

        public abstract AbstractNoBodyTagHelper getHelper()
        Method for retrieving the helper related with the tag.
        Returns:
        an instance from AbstractNoBodyTagHelper which will take care of processing and rendering the HTML contents related with this tag.
      • release

        public void release()
        Utility method for cleaning up the properties on the custom tag instance.
        Specified by:
        release in interface javax.servlet.jsp.tagext.Tag
        Overrides:
        release in class javax.servlet.jsp.tagext.TagSupport
      • doStartTag

        public int doStartTag()
                       throws javax.servlet.jsp.JspException,
                              javax.servlet.jsp.JspException
        Process the start tag for this instance. The doStartTag() method assumes that all setter methods have been invoked before.
        Specified by:
        doStartTag in interface javax.servlet.jsp.tagext.Tag
        Overrides:
        doStartTag in class javax.servlet.jsp.tagext.TagSupport
        Returns:
        SKIP_BODY since it does not want to process or display it.
        Throws:
        javax.servlet.jsp.JspException - if an error is risen 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.TagSupport
        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