|
Java EE 5 SDK | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectjavax.servlet.jsp.tagext.TagSupport
com.sun.appserv.web.taglibs.cache.FlushTag
public class FlushTag
FlushTag is a JSP tag that is used with the CacheTag. The FlushTag
allows you to invalidate a complete cache or a particular cache element
identified by the key.
Usage Example:
<%@ taglib prefix="ias" uri="Sun ONE Application Server Tags" %>
| 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 | |
|---|---|
FlushTag()
Default constructor that simply gets a handle to the web container subsystem's logger. |
|
| Method Summary | |
|---|---|
int |
doEndTag()
doEndTag just resets all the valiables in case the tag is reused |
int |
doStartTag()
doStartTag is called when the flush tag is encountered. |
void |
setKey(String key)
This is set a key for the cache element that needs to be cleared |
void |
setScope(String scope)
Sets the scope of the cache. |
| Methods inherited from class javax.servlet.jsp.tagext.TagSupport |
|---|
doAfterBody, 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 FlushTag()
| Method Detail |
|---|
public int doStartTag()
throws JspException
doStartTag in interface TagdoStartTag in class TagSupportJspException - the standard exception thrownTag.doStartTag()
public int doEndTag()
throws JspException
doEndTag in interface TagdoEndTag in class TagSupportJspException - the standard exception thrownTag.doEndTag()public void setKey(String key)
public void setScope(String scope)
scope - the scope of the cache
IllegalArgumentException - if the specified scope is different
from request, session, and application
|
Java EE 5 SDK | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
Copyright 2006 Sun Microsystems, Inc. All rights reserved.