Saturday, November 17, 2007

Cache for JSP

Cache components in Coldtags suite have been updated. See them here for example.
E.g. one trick we are actively using in our own web applications. What if you need to cache only a part of your JSP page. For the whole page you can use for example Expire header. But what about the partial caching? Timer taglib helps you to do that. E.g. you can request your DB back-end not often than once per the given time and simply use old data for the intermediate requests. And this taglib lets you markup such a chunks (fragments) on your JSP page

No comments: