diff -r 1612dbcec451 -r 639991d0808a java/cewolf-1.0/src/main/java/de/laures/cewolf/taglib/tags/CewolfTag.java --- /dev/null Thu Jan 01 00:00:00 1970 +0000 +++ b/java/cewolf-1.0/src/main/java/de/laures/cewolf/taglib/tags/CewolfTag.java Sat Feb 28 21:31:02 2009 +0100 @@ -0,0 +1,35 @@ +package de.laures.cewolf.taglib.tags; + +import javax.servlet.jsp.JspException; +import javax.servlet.jsp.tagext.TagSupport; + +import org.apache.commons.logging.Log; +import org.apache.commons.logging.LogFactory; + +/** + * @author glaures + * + * To change this generated comment edit the template variable "typecomment": + * Window>Preferences>Java>Templates. + * To enable and disable the creation of type comments go to + * Window>Preferences>Java>Code Generation. + */ +public abstract class CewolfTag extends TagSupport { + + protected Log log = LogFactory.getLog(this.getClass()); + + protected final int doAfterEndTag(int returnVal) { + reset(); + return returnVal; + } + + protected abstract void reset(); + + /** + * @see javax.servlet.jsp.tagext.Tag#doEndTag() + */ + public int doEndTag() throws JspException { + return doAfterEndTag(super.doEndTag()); + } + +}