public final class TransactionTag
extends javax.servlet.jsp.tagext.BodyTagSupport
implements javax.servlet.jsp.tagext.TryCatchFinally
| Constructor and Description |
|---|
TransactionTag() |
| Modifier and Type | Method and Description |
|---|---|
void |
doCatch(Throwable arg)
This method is invoked by the JSP engine whenever there
is an exception in the body.
|
void |
doFinally()
Invoked at the end of the tag.
|
int |
doStartTag()
Invoked before the body is evaluated.
|
void |
setTimeout(String seconds)
Sets the timeout for new transactions.
|
doAfterBody, doEndTag, doInitBody, getBodyContent, getPreviousOut, release, setBodyContentfindAncestorWithClass, getId, getParent, getValue, getValues, removeValue, setId, setPageContext, setParent, setValuepublic void setTimeout(String seconds)
seconds - The timeout in seconds.public int doStartTag()
throws javax.servlet.jsp.JspException
doStartTag in interface javax.servlet.jsp.tagext.TagdoStartTag in class javax.servlet.jsp.tagext.BodyTagSupportjavax.servlet.jsp.JspException - On failure.public void doCatch(Throwable arg) throws Throwable
doCatch in interface javax.servlet.jsp.tagext.TryCatchFinallyarg - The exception that has happened. This
exception is re-raised after marking the transaction
for rollback.Throwablepublic void doFinally()
doFinally in interface javax.servlet.jsp.tagext.TryCatchFinallyCopyright © 2026. All rights reserved.