|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Object | +--javax.servlet.jsp.tagext.TagSupport | +--com.mkdoc.tag.QueryResultTag
Render query results to a JSP page.
Field Summary | |
protected static ApplicationContext |
appContext
The application context. |
protected static StoreManager |
manager
The query manager |
protected int |
mode
The tag output mode. |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext, parent |
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 | |
QueryResultTag()
|
Method Summary | |
int |
doStartTag()
Parse a query and output the results. |
protected boolean |
getExtended()
Get extended bNode query status. |
int |
getMode()
Get the output mode for the tag. |
protected void |
init()
Get the configuration parameters for the tag. |
void |
setExtended(boolean extended)
Set whether extended bNode queries are supported. |
void |
setMode(int mode)
Set the output mode for the tag. |
Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
doAfterBody, doEndTag, findAncestorWithClass, getId, getParent, getValue, getValues, release, removeValue, setId, setPageContext, setParent, setValue |
Methods inherited from class java.lang.Object |
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Field Detail |
protected static ApplicationContext appContext
protected static StoreManager manager
protected int mode
Constructor Detail |
public QueryResultTag()
Method Detail |
protected final void init() throws javax.servlet.jsp.JspException
javax.servlet.jsp.JspException
- If there is an exception creating
a store query manager to handle queries.public final int doStartTag() throws javax.servlet.jsp.JspException
The appropriate content type should be set in the JSP template.
doStartTag
in interface javax.servlet.jsp.tagext.Tag
doStartTag
in class javax.servlet.jsp.tagext.TagSupport
javax.servlet.jsp.JspException
- If there is a problem issuing a server
error response.public final int getMode()
QueryResultTag.FULL
or
QueryResultTag.INSERT
public final void setMode(int mode)
mode
- The output mode for the tag, which should be either
ResultRenderer.FULL
or
ResultRenderer.INSERT
public final void setExtended(boolean extended)
extended
- Whether bNode queries are supported.protected final boolean getExtended()
|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |