hep.aida.web.taglib.jsp20
Class TupleTagImpl

java.lang.Object
  extended by javax.servlet.jsp.tagext.SimpleTagSupport
      extended by hep.aida.web.taglib.jsp20.TupleTagImpl
All Implemented Interfaces:
TupleTag, javax.servlet.jsp.tagext.JspTag, javax.servlet.jsp.tagext.SimpleTag

public class TupleTagImpl
extends javax.servlet.jsp.tagext.SimpleTagSupport
implements TupleTag

Author:
The AIDA team @ SLAC.

Constructor Summary
TupleTagImpl()
           
 
Method Summary
 void doTag()
           
 TupleTagSupport getTupleTagSupport()
           
 void setQuery(java.lang.Object resultSet)
          Set the query to transform into an ITuple.
 void setScope(java.lang.String scope)
          Set the scope of the output variable.
 void setVar(java.lang.String var)
          Set the name of the output variable for the ITuple.
 
Methods inherited from class javax.servlet.jsp.tagext.SimpleTagSupport
findAncestorWithClass, getJspBody, getJspContext, getParent, setJspBody, setJspContext, setParent
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

TupleTagImpl

public TupleTagImpl()
Method Detail

getTupleTagSupport

public TupleTagSupport getTupleTagSupport()

doTag

public void doTag()
           throws javax.servlet.jsp.JspException,
                  java.io.IOException
Specified by:
doTag in interface javax.servlet.jsp.tagext.SimpleTag
Overrides:
doTag in class javax.servlet.jsp.tagext.SimpleTagSupport
Throws:
javax.servlet.jsp.JspException
java.io.IOException

setVar

public void setVar(java.lang.String var)
Description copied from interface: TupleTag
Set the name of the output variable for the ITuple. This is a required attribute. If the scope is not specified (see TupleTag.setScope(String)) then the ITuplewill be stored in page scope.

Specified by:
setVar in interface TupleTag
Parameters:
var - the name of the output variable
See Also:
TupleTag.setScope(String)

setScope

public void setScope(java.lang.String scope)
Description copied from interface: TupleTag
Set the scope of the output variable. This is an optional attribute, and can be one of page,request, session or application. The default is page.

Specified by:
setScope in interface TupleTag
Parameters:
scope - scope of the output variable
See Also:
TupleTag.setVar(String)

setQuery

public void setQuery(java.lang.Object resultSet)
Description copied from interface: TupleTag
Set the query to transform into an ITuple. This can be an instance of ResultSet,Resultor the name of a variable in a JSP scope holding an ResultSet.

Specified by:
setQuery in interface TupleTag
Parameters:
resultSet - the query to transform into an ITuple


Copyright 2000-2007 FreeHEP. All Rights Reserved.