Oracle

weblogicx.jsp.tags
Class QueryTag

java.lang.Object
  extended by BodyTagSupport
      extended by weblogicx.jsp.tags.QueryTag

public class QueryTag
extends BodyTagSupport

The query tag allows you execute SQL against a data source and manipulate the results of the query.


Constructor Summary
QueryTag()
           
 
Method Summary
 int doAfterBody()
           
 void doInitBody()
           
 int doStartTag()
           
 String getDb()
           
 String getId()
           
 String getSql()
           
 void release()
          Clean up on failure of the body to execute.
 void setDb(String db)
          This is the name of the datasource as specified in the war file.
 void setId(String id)
          The id of the ResultSet returned from the query.
 void setSql(String sql)
          This is the SQL query to execute against the datasource.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

QueryTag

public QueryTag()
Method Detail

setId

public void setId(String id)
The id of the ResultSet returned from the query.


getId

public String getId()

setSql

public void setSql(String sql)
This is the SQL query to execute against the datasource.


getSql

public String getSql()

setDb

public void setDb(String db)
This is the name of the datasource as specified in the war file.


getDb

public String getDb()

doStartTag

public int doStartTag()
               throws JspException
Throws:
JspException

doInitBody

public void doInitBody()
                throws JspException
Throws:
JspException

doAfterBody

public int doAfterBody()
                throws JspException
Throws:
JspException

release

public void release()
Clean up on failure of the body to execute.


Documentation is available at
http://download.oracle.com/docs/cd/E12839_01/web.1111
Copyright 1996,2009, Oracle and/or its affiliates. All rights reserved. Oracle is a registered trademark of Oracle Corporation and/or its affiliates. Other names may be trademarks of their respective owners.

Part Number E13941-01
Oracle WebLogic Server 10.3.1 API Reference