examples.jsp.tagext.sql
Class ConnectionTag
java.lang.Object
|
+--javax.servlet.jsp.tagext.TagSupport
|
+--javax.servlet.jsp.tagext.BodyTagSupport
|
+--examples.jsp.tagext.sql.ConnectionTag
- All Implemented Interfaces:
- javax.servlet.jsp.tagext.BodyTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag
- public class ConnectionTag
- extends javax.servlet.jsp.tagext.BodyTagSupport
Creates a JDBC connection.
Field Summary |
(package private) java.sql.Connection |
conn
|
(package private) java.lang.String |
poolName
|
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_TAG |
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 |
doInitBody, 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 |
conn
java.sql.Connection conn
poolName
java.lang.String poolName
ConnectionTag
public ConnectionTag()
doAfterBody
public int doAfterBody()
throws javax.servlet.jsp.JspException
- Overrides:
doAfterBody
in class javax.servlet.jsp.tagext.BodyTagSupport
doEndTag
public int doEndTag()
throws javax.servlet.jsp.JspException
- Overrides:
doEndTag
in class javax.servlet.jsp.tagext.BodyTagSupport
doStartTag
public int doStartTag()
throws javax.servlet.jsp.JspException
- Overrides:
doStartTag
in class javax.servlet.jsp.tagext.BodyTagSupport
getConnection
public java.sql.Connection getConnection()
getPool_name
public java.lang.String getPool_name()
release
public void release()
- Overrides:
release
in class javax.servlet.jsp.tagext.BodyTagSupport
setPool_name
public void setPool_name(java.lang.String name)
Copyright © 2000 BEA Systems, Inc. All Rights Reserved.