|
|||||||||
| Home >> All >> org >> apache >> taglibs >> standard >> tag >> common >> [ core overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
org.apache.taglibs.standard.tag.common.core
Class CatchTag

java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
org.apache.taglibs.standard.tag.common.core.CatchTag
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.JspTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag, javax.servlet.jsp.tagext.TryCatchFinally
- public class CatchTag
- extends javax.servlet.jsp.tagext.TagSupport
- implements javax.servlet.jsp.tagext.TryCatchFinally
- extends javax.servlet.jsp.tagext.TagSupport
Tag handler for <catch> in JSTL 1.0.
<catch> simply catches any Throwables that occur in its body and optionally exposes them.
| Field Summary | |
private boolean |
caught
|
private java.lang.String |
var
|
| Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
| Fields inherited from interface javax.servlet.jsp.tagext.IterationTag |
EVAL_BODY_AGAIN |
| Fields inherited from interface javax.servlet.jsp.tagext.Tag |
EVAL_BODY_INCLUDE, EVAL_PAGE, SKIP_BODY, SKIP_PAGE |
| Constructor Summary | |
CatchTag()
|
|
| Method Summary | |
void |
doCatch(java.lang.Throwable t)
Invoked if a Throwable occurs while evaluating the BODY inside a tag or in any of the following methods: Tag.doStartTag(), Tag.doEndTag(), IterationTag.doAfterBody() and BodyTag.doInitBody(). |
void |
doFinally()
Invoked in all cases after doEndTag() for any class implementing Tag, IterationTag or BodyTag. |
int |
doStartTag()
Default processing of the start tag, returning SKIP_BODY. |
private void |
init()
|
void |
release()
Release state. |
void |
setVar(java.lang.String var)
|
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValue |
| Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
var
private java.lang.String var
caught
private boolean caught
| Constructor Detail |
CatchTag
public CatchTag()
| Method Detail |
release
public void release()
- Description copied from class:
javax.servlet.jsp.tagext.TagSupport - Release state.
- Specified by:
releasein interfacejavax.servlet.jsp.tagext.Tag
init
private void init()
doStartTag
public int doStartTag()
- Description copied from class:
javax.servlet.jsp.tagext.TagSupport - Default processing of the start tag, returning SKIP_BODY.
- Specified by:
doStartTagin interfacejavax.servlet.jsp.tagext.Tag
doCatch
public void doCatch(java.lang.Throwable t)
- Description copied from interface:
javax.servlet.jsp.tagext.TryCatchFinally - Invoked if a Throwable occurs while evaluating the BODY
inside a tag or in any of the following methods:
Tag.doStartTag(), Tag.doEndTag(),
IterationTag.doAfterBody() and BodyTag.doInitBody().
This method is not invoked if the Throwable occurs during one of the setter methods.
This method may throw an exception (the same or a new one) that will be propagated further up the nest chain. If an exception is thrown, doFinally() will be invoked.
This method is intended to be used to respond to an exceptional condition.
- Specified by:
doCatchin interfacejavax.servlet.jsp.tagext.TryCatchFinally
doFinally
public void doFinally()
- Description copied from interface:
javax.servlet.jsp.tagext.TryCatchFinally - Invoked in all cases after doEndTag() for any class implementing
Tag, IterationTag or BodyTag. This method is invoked even if
an exception has occurred in the BODY of the tag,
or in any of the following methods:
Tag.doStartTag(), Tag.doEndTag(),
IterationTag.doAfterBody() and BodyTag.doInitBody().
This method is not invoked if the Throwable occurs during one of the setter methods.
This method should not throw an Exception.
This method is intended to maintain per-invocation data integrity and resource management actions.
- Specified by:
doFinallyin interfacejavax.servlet.jsp.tagext.TryCatchFinally
setVar
public void setVar(java.lang.String var)
|
|||||||||
| Home >> All >> org >> apache >> taglibs >> standard >> tag >> common >> [ core overview ] | PREV CLASS NEXT CLASS | ||||||||
SUMMARY: JAVADOC | SOURCE | DOWNLOAD | NESTED | FIELD | CONSTR | METHOD |
DETAIL: FIELD | CONSTR | METHOD | ||||||||
JAVADOC