|
|||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.servlet.jsp.tagext.TagSupport | +--javax.servlet.jsp.tagext.BodyTagSupport | +--com.iphrase.onestep.tags.QueryTag
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.
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 |
public QueryTag()
Method Detail |
public int doEndTag() throws javax.servlet.jsp.JspException
doEndTag
.
It extracts query parameters from the HttpServletRequest
,
provides them to the OneStep server, and stores the retrieved results
in the request-scope.doEndTag
in class javax.servlet.jsp.tagext.BodyTagSupport
javax.servlet.jsp.JspException
- public void setRetry(int i)
retry
tag attribute.i
- specifies the number of attempts to connect to the
OneStep server.public void setTimeout(int i)
timeout
tag attribute.i
- specifies the maximal number of seconds to wait for
the OneStep server response.public void addServer(java.lang.String server)
ServerTag
server
- single server address.
|
© Copyright 2005, 2006. IBM Corporation. All rights reserved. | ||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
SUMMARY: INNER | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |