|
|||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
com.opensymphony.oscache.web.tag.UseCachedTag
UseCachedTag is a tag that tells a <cache> tag to reuse the cached body.
Usage Example:
<%@ taglib uri="oscache" prefix="cache" %>
<cache:cache key="mycache" scope="application">
if (reuse cached)
<cache:usecached />
else
some other logic
</cache:cache>
Note this is very useful with try / catch blocks
so that you can still produce old cached data if an
exception occurs, eg your database goes down.
Field Summary |
Fields inherited from class javax.servlet.jsp.tagext.TagSupport |
id, pageContext |
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 | |
UseCachedTag()
|
Method Summary | |
int |
doStartTag()
The start tag. |
void |
setUse(boolean value)
Set the decision to use the body content of the ancestor <cache> or not. |
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 |
Constructor Detail |
public UseCachedTag()
Method Detail |
public void setUse(boolean value)
value
- Whether or not to use the body content. Default is true.public int doStartTag() throws javax.servlet.jsp.JspTagException
javax.servlet.jsp.JspTagException
- The standard tag exception thrown.
|
See www.opensymphony.com for more information. | ||||||||||
PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||||
SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD |