franta-hg@1: package de.laures.cewolf.taglib.tags; franta-hg@1: franta-hg@1: import javax.servlet.jsp.JspException; franta-hg@1: import javax.servlet.jsp.tagext.BodyTagSupport; franta-hg@1: franta-hg@1: import org.apache.commons.logging.Log; franta-hg@1: import org.apache.commons.logging.LogFactory; franta-hg@1: franta-hg@1: /** franta-hg@1: * @author glaures franta-hg@1: * franta-hg@1: * To change this generated comment edit the template variable "typecomment": franta-hg@1: * Window>Preferences>Java>Templates. franta-hg@1: * To enable and disable the creation of type comments go to franta-hg@1: * Window>Preferences>Java>Code Generation. franta-hg@1: */ franta-hg@1: public abstract class CewolfBodyTag extends BodyTagSupport { franta-hg@1: franta-hg@1: protected Log log = LogFactory.getLog(getClass()); franta-hg@1: franta-hg@1: protected final int doAfterEndTag(int returnVal) { franta-hg@1: reset(); franta-hg@1: return returnVal; franta-hg@1: } franta-hg@1: franta-hg@1: protected abstract void reset(); franta-hg@1: franta-hg@1: /** franta-hg@1: * @see javax.servlet.jsp.tagext.Tag#doEndTag() franta-hg@1: */ franta-hg@1: public int doEndTag() throws JspException { franta-hg@1: return doAfterEndTag(super.doEndTag()); franta-hg@1: } franta-hg@1: franta-hg@1: }