Download page taglib ver. 1.2

    Custom JSP taglib. This taglib lets you output a page for the downloading. This page shows some user defined content and automatically starts file downloading.

For example:
 


<%@ taglib uri="taglib.tld" prefix="d" %>

<d:downloadPage url="http://www.servletsuite.com/servlets/sos.zip"
    title="Download JSOS">
  <p>Your download should begin shortly. If it does not, try
  <br><a href="http://www.servletsuite.com/servlets/sos.zip">http://www.servletsuite.com/servlets/sos.zip</a>.
</d:downloadPage>

Tags are:

downloadPage

Tag produces HTML page for the downloading. Parameters are:

1) url Describes a path (URL) for the downloading.
2) title Optional parameter. Describes a title for your page.
3) charset Optional parameter. Describes a charset for your page.
4) css Optional parameter. Describes an URL for your CSS file.
 

for downloading:

    Library: dloadpagetag.jar    Description: taglib.tld

 © Coldbeans      Comments?

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