GPS location taglib ver. 1.3


    Custom JSP tags library lets you extract coordinates (latitude and longitude) from GPS link, automatically published by the clients like Twittelator or TwitPic. So tag lets you build mashups for example. Tag decrypts short URL with location data and extracts geo coordinates from it:
 


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

<t:GPSLocation id="A">http://bit.ly/n6Yxt</t:GPSLocation>

Latitude: <%=A_lat%>
Longitude: <%=A_lng%>

Tags are:

GPSLocation

Body tag lets you decrypt GPS location link and extract latitude and longitude. By default tag uses own body as a source url. Attributes are:

1) url Optional attribute. Describes a short URL
2) id Optional attribute. Describes a base name (prefix) for the page scope variables with the decrypted data. Tag creates two variables (type is java.lang.String) with suffixes _lat and _lng. Without this attribute tag simply prints data.

GPSLocationLink

Tag lets you create a short link with the location. Attributes are:

1) latitude Describes a latitude
2) longitude Describes a longitude
3) proxyHost Optional attribute. Describes proxy settings for your host
4) proxyPort Optional attribute. Describes proxy settings for your host
5) id Optional attribute. Describes a name for the page scope variables with the link. Without this attribute tag simply prints data.

for downloading:

Library: gpsloctag.jar    Description: taglib.tld

 © Coldbeans      Comments?

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

Also in Coldtags: