001    package railo.runtime.ext.tag;
002    
003    import javax.servlet.jsp.JspException;
004    import javax.servlet.jsp.tagext.BodyContent;
005    import javax.servlet.jsp.tagext.BodyTag;
006    
007    
008    /**
009     * Implementation of the BodyTag
010     */
011    public abstract class BodyTagSupport extends TagSupport implements BodyTag {
012    
013        /**
014         * Field <code>bodyContent</code>
015         */
016        protected BodyContent bodyContent=null;
017    
018        /**
019         * @see javax.servlet.jsp.tagext.BodyTag#setBodyContent(javax.servlet.jsp.tagext.BodyContent)
020         */
021        public void setBodyContent(BodyContent bodyContent) {
022            this.bodyContent=bodyContent;
023        }
024    
025        /**
026         * @see javax.servlet.jsp.tagext.BodyTag#doInitBody()
027         */
028        public void doInitBody() throws JspException {
029            
030        }
031    
032        /**
033         * @see javax.servlet.jsp.tagext.IterationTag#doAfterBody()
034         */
035        public int doAfterBody() throws JspException {
036            return SKIP_BODY;
037        }
038    
039        /**
040         * @see javax.servlet.jsp.tagext.Tag#release()
041         */
042        public void release() {
043            super.release();
044            bodyContent=null;
045        }
046    }