Cache Off ver. 1.5

    Custom JSP tag. Switch off cache control. Tag updates header for the response. For WAP clients tag generates a list of appropriate meta tags you must include into head section of your wml document.

For example:

1) standard browser
 


<%@ taglib uri="taglib.tld" prefix="cache" %>
<cache:CacheOff/>
<html>
...
</html>

2) WAP browser
 


<%@ taglib uri="taglib.tld" prefix="cache" %>
<% response.setContentType("text/vnd.wap.wml"); %>
<?xml version="1.0"?>
<!DOCTYPE wml PUBLIC "-//WAPFORUM//DTD WML 1.1//EN" "http://www.wapforum.org/DTD/wml_1.1.xml">
<wml>
<head>
<cache:CacheOff/>
</head>
...
</wml>

CacheOff

Body tag sets cache off headers. Attributes are:

1) cond Optional attribute. Describes a boolean value tag's execution depends on. Default value is true (cache off).

for downloading:

Library: cacheoff.jar    Description: taglib.tld

 © Coldbeans      Comments?

See also Coldtags suite - the largest collection of custom JSP tags.

Also in Coldtags: