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