java/cewolf-1.0/src/main/java/de/laures/cewolf/taglib/tags/CewolfTag.java
changeset 1 639991d0808a
     1.1 --- /dev/null	Thu Jan 01 00:00:00 1970 +0000
     1.2 +++ b/java/cewolf-1.0/src/main/java/de/laures/cewolf/taglib/tags/CewolfTag.java	Sat Feb 28 21:31:02 2009 +0100
     1.3 @@ -0,0 +1,35 @@
     1.4 +package de.laures.cewolf.taglib.tags;
     1.5 +
     1.6 +import javax.servlet.jsp.JspException;
     1.7 +import javax.servlet.jsp.tagext.TagSupport;
     1.8 +
     1.9 +import org.apache.commons.logging.Log;
    1.10 +import org.apache.commons.logging.LogFactory;
    1.11 +
    1.12 +/**
    1.13 + * @author glaures
    1.14 + *
    1.15 + * To change this generated comment edit the template variable "typecomment":
    1.16 + * Window>Preferences>Java>Templates.
    1.17 + * To enable and disable the creation of type comments go to
    1.18 + * Window>Preferences>Java>Code Generation.
    1.19 + */
    1.20 +public abstract class CewolfTag extends TagSupport {
    1.21 +
    1.22 +    protected Log log = LogFactory.getLog(this.getClass());
    1.23 +    
    1.24 +	protected final int doAfterEndTag(int returnVal) {
    1.25 +		reset();
    1.26 +		return returnVal;
    1.27 +	}
    1.28 +	
    1.29 +	protected abstract void reset();
    1.30 +
    1.31 +	/**
    1.32 +	 * @see javax.servlet.jsp.tagext.Tag#doEndTag()
    1.33 +	 */
    1.34 +	public int doEndTag() throws JspException {
    1.35 +		return doAfterEndTag(super.doEndTag());
    1.36 +	}
    1.37 +
    1.38 +}