com.iphrase.onestep.tags
Class QueryTag

java.lang.Object
  |
  +--javax.servlet.jsp.tagext.TagSupport
        |
        +--javax.servlet.jsp.tagext.BodyTagSupport
              |
              +--com.iphrase.onestep.tags.QueryTag
All Implemented Interfaces:
javax.servlet.jsp.tagext.BodyTag, javax.servlet.jsp.tagext.IterationTag, java.io.Serializable, javax.servlet.jsp.tagext.Tag

Deprecated. As of release 1.2, replaced by QueryHandler. QueryTag is a thin wrapper around the QueryHandler. By simply defining a QueryTag using one line of code, you initialize an instance of the QueryHandler and set up communication with the OneStep Server. QueryTag is useful when no advanced customization is required. When advanced communication is required, the QueryHandler object should be used directly in your JSP files. See the QueryHandler documentation for more details.

public class QueryTag
extends javax.servlet.jsp.tagext.BodyTagSupport

See Also:
Serialized Form

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
QueryTag()
          Deprecated.  
 
Method Summary
 void addServer(java.lang.String server)
          Deprecated. Sets a single OneStep server address.
 int doEndTag()
          Deprecated. Called automatically by the JSP engine when reaching the doEndTag.
 void setRetry(int i)
          Deprecated. The setter for the optional retry tag attribute.
 void setTimeout(int i)
          Deprecated. The setter for the optional timeout tag attribute.
 
Methods inherited from class javax.servlet.jsp.tagext.BodyTagSupport
doAfterBody, doInitBody, doStartTag, 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
equals, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 
Methods inherited from interface javax.servlet.jsp.tagext.Tag
getParent, setPageContext, setParent
 

Constructor Detail

QueryTag

public QueryTag()
Deprecated. 
Method Detail

doEndTag

public int doEndTag()
             throws javax.servlet.jsp.JspException
Deprecated. 
Called automatically by the JSP engine when reaching the doEndTag. It extracts query parameters from the HttpServletRequest, provides them to the OneStep server, and stores the retrieved results in the request-scope.
Overrides:
doEndTag in class javax.servlet.jsp.tagext.BodyTagSupport
Throws:
javax.servlet.jsp.JspException -  

setRetry

public void setRetry(int i)
Deprecated. 
The setter for the optional retry tag attribute.
Parameters:
i - specifies the number of attempts to connect to the OneStep server.

setTimeout

public void setTimeout(int i)
Deprecated. 
The setter for the optional timeout tag attribute.
Parameters:
i - specifies the maximal number of seconds to wait for the OneStep server response.

addServer

public void addServer(java.lang.String server)
Deprecated. 
Sets a single OneStep server address. Used by the inner ServerTag
Parameters:
server - single server address.

© Copyright 2005, 2006. IBM Corporation. All rights reserved.