Hi all, Just wanted to announce the Cache Taglib, now in development at Jakarta Taglibs.
A large web application provides many opportunities to cache content for performance. For instance, entire pages could be cached by a filter; whole chunks of sites could be cached behind a network edge (see http://www.esi.org). Our Cache Taglib should help build community experience with using JSP tag libraries to cache fragments of JSP pages within a Java web application. The Cache Taglib currently has two tags; they've been designed with JSTL's principles in mind. Specifically, their goal is to let page authors focus on presentation and not worry about too many behind-the-scenes details. (Also, they use the JSTL expression language.) Right now, there are just two tags: <cache:cache> and <cache:invalidate>. The <cache:cache> tag lets you wrap a page fragment and indicate that it's cachable. The tag lets you "factor out" the dynamic nature of such fragments, specifying a "key" that represents the content. For instance, as the page author, you might know that a large part of your page doesn't change once a user has logged in; you might therefore use a key of "${user}" to indicate that the fragment depends on the 'user' variable. The <cache:invalidate> tag lets you explicitly destroy a cache entry or a whole cache. Applications can use the Cache Taglib with an unlimited number of caches; the size and expiration policies of the caches are determined by back-end code on the assumption that page authors don't frequently need to handle such details. (There's a utility class, CacheUtil, that lets your code easily configure the caches.) Anyway, the tags and documentation are available from http://jakarta.apache.org/taglibs/doc/cache-doc/intro.html I'm happy to answer any questions you've got. Again, while the tags should be usable as presented, this is mainly an experiment to build experience with taglib-based caching -- so comments would be great! Thanks. -- Shawn Bayern Author, "JSP Standard Tag Library" http://www.jstlbook.com (coming this summer from Manning Publications) -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>