|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.apache.taglibs.standard.tag.common.sql.UpdateTagSupport
public abstract class UpdateTagSupport
Tag handler for <Update> in JSTL.
Field Summary | |
---|---|
protected boolean |
dataSourceSpecified
|
protected Object |
rawDataSource
|
protected String |
sql
|
Fields inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
---|
bodyContent |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
id, pageContext |
Fields inherited from interface javax.servlet.jsp.tagext.BodyTag |
---|
EVAL_BODY_BUFFERED, EVAL_BODY_TAG |
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 | |
---|---|
UpdateTagSupport()
|
Method Summary | |
---|---|
void |
addSQLParameter(Object o)
Called by nested parameter elements to add PreparedStatement parameter values. |
void |
doCatch(Throwable t)
Just rethrows the Throwable. |
int |
doEndTag()
Execute the SQL statement, set either through the sql
attribute or as the body, and save the result as a variable
named by the var attribute in the scope specified
by the scope attribute, as an object that implements
the Result interface. |
void |
doFinally()
Close the Connection , unless this action is used
as part of a transaction. |
int |
doStartTag()
Prepares for execution by setting the initial state, such as getting the Connection |
void |
setScope(String scopeName)
Setter method for the scope of the variable to hold the result. |
void |
setVar(String var)
Setter method for the name of the variable to hold the result. |
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
---|
doAfterBody, doInitBody, getBodyContent, getPreviousOut, release, setBodyContent |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
---|
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 |
Methods inherited from interface javax.servlet.jsp.tagext.Tag |
---|
getParent, setPageContext, setParent |
Field Detail |
---|
protected Object rawDataSource
protected boolean dataSourceSpecified
protected String sql
Constructor Detail |
---|
public UpdateTagSupport()
Method Detail |
---|
public void setVar(String var)
public void setScope(String scopeName)
public int doStartTag() throws javax.servlet.jsp.JspException
Connection
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
public int doEndTag() throws javax.servlet.jsp.JspException
Execute the SQL statement, set either through the sql
attribute or as the body, and save the result as a variable
named by the var
attribute in the scope specified
by the scope
attribute, as an object that implements
the Result interface.
The connection used to execute the statement comes either
from the DataSource
specified by the
dataSource
attribute, provided by a parent action
element, or is retrieved from a JSP scope attribute
named javax.servlet.jsp.jstl.sql.dataSource
.
doEndTag
in interface javax.servlet.jsp.tagext.Tag
doEndTag
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
public void doCatch(Throwable t) throws Throwable
doCatch
in interface javax.servlet.jsp.tagext.TryCatchFinally
Throwable
public void doFinally()
Connection
, unless this action is used
as part of a transaction.
doFinally
in interface javax.servlet.jsp.tagext.TryCatchFinally
public void addSQLParameter(Object o)
addSQLParameter
in interface javax.servlet.jsp.jstl.sql.SQLExecutionTag
|
||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | |||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |