Custom JSP taglib lets you calculate code chunks only once per session. Just a simplified version of cache: save tag's
body in session scope during the first execution and use that value later. For example:
<%@ taglib uri="taglib.tld" prefix="c" %> <c:OncePerSession> your code here </c:OncePerSession> if you have more than one cached code chunk on the same page you can use attribute id as unique key for the each chunk. Tags are: OncePerSession Body tag lets you calculate code chunks once per session. Parameters are: 1) id Optional attribute. Describes an unique ID for your chunk. for downloading: Library: oncepersessiontag.jar Description: taglib.tld See also Coldtags suite - the largest collection of custom JSP tags.
|
Also in Coldtags:
|