org.apache.taglibs.dbtags.statement
Class ExecuteTag
java.lang.Object
javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.tagext.BodyTagSupport
org.apache.taglibs.dbtags.statement.ExecuteTag
- All Implemented Interfaces:
- java.io.Serializable, javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, javax.servlet.jsp.tagext.Tag
public class ExecuteTag
- extends javax.servlet.jsp.tagext.BodyTagSupport
JSP tag execute, executes the query for the enclosing statement or
preparedstatement tag.
Setting the "ignoreErrors" atttibute to true
will instruct the page to continue in the event of a SQLException,
otherwise by default exceptions will throw a JspTagException.
JSP Tag Lib Descriptor
<name>execute</name>
<tagclass>org.apache.taglibs.dbtags.statement.ExecuteTag</tagclass>
<bodycontent>JSP</bodycontent>
<info>Executes the query for the enclosing statement or
preparedstatement tag.</info>
<attribute>
<name>ignoreErrors</name>
<required>false</required>
<rtexprvalue>true</rtexprvalue>
</attribute>
- Author:
- Morgan Delagrange
- See Also:
StatementImplTag
,
QueryTag
,
PreparedStatementImplTag
,
Serialized Form
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 |
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport |
doAfterBody, doInitBody, doStartTag, getBodyContent, getPreviousOut, 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 |
ExecuteTag
public ExecuteTag()
setIgnoreErrors
public void setIgnoreErrors(boolean ignoreErrors)
doEndTag
public int doEndTag()
throws javax.servlet.jsp.JspTagException
- Specified by:
doEndTag
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
doEndTag
in class javax.servlet.jsp.tagext.BodyTagSupport
- Throws:
javax.servlet.jsp.JspTagException
release
public void release()
- Specified by:
release
in interface javax.servlet.jsp.tagext.Tag
- Overrides:
release
in class javax.servlet.jsp.tagext.BodyTagSupport
Copyright ? 2000-2004 The Apache Software Foundation. All Rights Reserved.