java/cewolf-1.0/src/main/java/de/laures/cewolf/taglib/tags/CewolfTag.java
author František Kučera <franta-hg@frantovo.cz>
Sat, 28 Feb 2009 21:31:02 +0100
changeset 1 639991d0808a
permissions -rw-r--r--
Rozbalená knihovna verze 1.0
     1 package de.laures.cewolf.taglib.tags;
     2 
     3 import javax.servlet.jsp.JspException;
     4 import javax.servlet.jsp.tagext.TagSupport;
     5 
     6 import org.apache.commons.logging.Log;
     7 import org.apache.commons.logging.LogFactory;
     8 
     9 /**
    10  * @author glaures
    11  *
    12  * To change this generated comment edit the template variable "typecomment":
    13  * Window>Preferences>Java>Templates.
    14  * To enable and disable the creation of type comments go to
    15  * Window>Preferences>Java>Code Generation.
    16  */
    17 public abstract class CewolfTag extends TagSupport {
    18 
    19     protected Log log = LogFactory.getLog(this.getClass());
    20     
    21 	protected final int doAfterEndTag(int returnVal) {
    22 		reset();
    23 		return returnVal;
    24 	}
    25 	
    26 	protected abstract void reset();
    27 
    28 	/**
    29 	 * @see javax.servlet.jsp.tagext.Tag#doEndTag()
    30 	 */
    31 	public int doEndTag() throws JspException {
    32 		return doAfterEndTag(super.doEndTag());
    33 	}
    34 
    35 }