1.0 1.2 appserv-tags Sun ONE Application Server Tags This tag library is part of the Sun ONE Application Server. Copyright (c) 2002 by Sun Microsystems, Inc. All Rights Reserved. Use is subject to license terms. com.sun.appserv.web.taglibs.cache.CacheContextListener cache com.sun.appserv.web.taglibs.cache.CacheTag JSP The cache tag lets you cache fragments of your JSP pages. key no yes The cache key is suffixed to the servlet path to generate a key to access the cached entry. If no key is specified, a number is generated according to the position of the tag in the page. timeout no no The amount of time in seconds, after which the body of the tag is evaluated and the cache is refreshed. A different unit of time can also be specified by postfixing the timeout value with the desired unit: s= seconds, m= minutes, h= hours, d=days. The default value is "60s". nocache no yes If set to true, the body content is evaluated and served as if there was no cache tag. This offers a way to programmatically decide whether the cached response should be sent or whether the body has to be evaluated, though the response is not cached. The default value is "false". refresh no yes If set to true, the body content is evaluated irrespective of the timeout and the response is cached again. The default value is "false". scope no no Specifies the scope of the cache. Valid values are "request", "session", and "application". The default value is "application". flush com.sun.appserv.web.taglibs.cache.FlushTag empty The cache tag lets you flush particular cache entries or the entire cache in a given scope. key no yes The cache key is suffixed to the servlet path to generate a key to access the cached entry. If no key is specified, a number is generated according to the position of the tag in the page. scope no no Specifies the scope of the cache. Valid values are "request", "session", and "application". The default value is "application".