Custom JSP taglib - lets you compress files (folders) on your size. You can
use it for backup tools, for downloading preparation etc. E.g., the following code packs a directory
/data/content:
<%@ taglib uri="taglib.tld" prefix="z" %> <z:zip source="/data/content" target="file.zip"/> You can directly provide a name for the target .zip file (attribute target) or tag will automatically create a temp file for you. In this case you can get a name for that file via attribute id. Tags are: zip Tag lets you compress file or folder. Attributes are: 1) source Describes a source file or folder
for downloading: Library: ziptag.jar Description: taglib.tld See also Coldtags suite - the largest collection of custom JSP tags. |
Also in Coldtags:
|