KickJava   Java API By Example, From Geeks To Geeks.

Java > Open Source Codes > de > laures > cewolf > taglib > tags > CewolfBodyTag


1 package de.laures.cewolf.taglib.tags;
2
3 import javax.servlet.jsp.JspException JavaDoc;
4 import javax.servlet.jsp.tagext.BodyTagSupport JavaDoc;
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 CewolfBodyTag extends BodyTagSupport JavaDoc {
18     
19     protected Log log = LogFactory.getLog(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 JavaDoc {
32         return doAfterEndTag(super.doEndTag());
33     }
34
35 }
36
Popular Tags