ZIP taglib ver. 1.1

    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
2) target Optional attribute. Describes a name for the target .zip file
3) id Optional attribute. Describes a name for your page scope variable (type is java.lang.String) where the actual name for the target file will be saved.

for downloading:

Library: ziptag.jar    Description: taglib.tld

 © Coldbeans      Comments?

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

Also in Coldtags: