01: package de.laures.cewolf.taglib.tags;
02:
03: import javax.servlet.jsp.JspException;
04: import javax.servlet.jsp.tagext.TagSupport;
05:
06: import org.apache.commons.logging.Log;
07: import org.apache.commons.logging.LogFactory;
08:
09: /**
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: }
|