Digg URL taglib ver. 1.1

    Custom JSP tags library lets you deploy Digg Short URL API in your JSP pages. So tag lets you calculate Digg short url for the given URL. For example:
 


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

<d:DiggUrl>http://www.servletsuite.com</d:DiggUrl>

and you will get this: http://digg.com/d1Q9SG

Tags are:

DiggUrl

Body tag lets you calculate Digg short url for the given data. Tag uses own body as a source url. Attributes are:

1) proxyHost Optional attribute. Describes proxy settings for your host
2) proxyPort Optional attribute. Describes proxy settings for your host
3) id Optional attribute. Describes a name for the page scope (type is java.lang.String) for the calculated data. Without this parameter tag just prints the short url.
4) appkey Optional attribute. Describes an application key for Digg API. By default your server's URI will be used.
5) cond Optional attribute. Describes a boolean value tag's behavior depends on. Default value is true (shorten the url)

for downloading:

Library: diggurltag.jar    Description: taglib.tld

 © Coldbeans      Comments?

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

Also in Coldtags: