Bit.ly taglib ver. 1.3


    Custom JSP tags library lets you deploy Bit.ly URL shortening service in your JSP (and/or Coldfusion) pages. So tag lets you calculate tiny url for the given URL as well as expand the shorten URL. For example:
 


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

<t:BitlyUrl>http://www.servletsuite.com</t:BitlyUrl>

and you will get this: http://bit.ly/fHxl

and the same tag could be used for the expanding. E.g. shorten the URL and expand it back:
 


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

<t:BitlyUrl id="A">http://www.servletsuite.com</t:BitlyUrl>

<t:BitlyUrl action="expand"><%=A%></t:BitlyUrl>

Tags are:

BitlyUrl

Body tag lets you calculate tiny url for the given data or expand the short url. 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 url.
4) action Optional attribute. Describes an action. Possible values are shorten or expand. Default value is shorten (calculate tiny URL)
5) login Optional attribute. Describes your own login for Bit.ly API.
6) apiKey Optional attribute. Describes your own API Key for Bit.ly API.
7) version Optional attribute. Describes a version of Bit.ly API. Default value is 3.

for downloading:

Library: bitlytag.jar    Description: taglib.tld

 © Coldbeans      Comments?

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

Also in Coldtags: