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 BodyTagImpl extends TagImpl implements BodyTag {
012    
013            protected BodyContent bodyContent=null;
014    
015            /**
016             * @see javax.servlet.jsp.tagext.BodyTag#setBodyContent(javax.servlet.jsp.tagext.BodyContent)
017             */
018            public void setBodyContent(BodyContent bodyContent) {
019                    this.bodyContent=bodyContent;
020            }
021    
022            /**
023             * @see javax.servlet.jsp.tagext.BodyTag#doInitBody()
024             */
025            public void doInitBody() throws JspException {
026                    
027            }
028    
029            /**
030             * @see javax.servlet.jsp.tagext.IterationTag#doAfterBody()
031             */
032            public int doAfterBody() throws JspException {
033                    return SKIP_BODY;
034            }
035    
036            /**
037             * @see javax.servlet.jsp.tagext.Tag#release()
038             */
039            public void release() {
040                    super.release();
041                    bodyContent=null;
042            }
043    }