TimeZone taglib ver. 1.1

    Custom JSP taglib. Lets you obtain the time zone info for the give latitude and longitude. Taglib uses GeoNames.org web service to get the user's time zone based on the geographic location. For example:
 


<html>
<%@ taglib uri="taglib.tld" prefix="t" %>
<t:TimeZone latitude="55" longitude="37" idZone="zone" idOffset="off"/>

TimeZone: <%=zone%>
Time offset: <%=off%>
</html>

Tag TimeZone creates 2 page scope variables (type is java.lang.String) with time zone id and GMT time offset.

Tags are:

TimeZone.

Tag obtains time zone based on the geographic location. Attributes are:

1) latitude - describes a latitude
2) longitude - describes a longitude
3) proxyHost Optional attribute. Describes proxy settings for your system.
4) proxyPort Optional attribute. Describes proxy settings for your system.
5) idZone Describes a name for the page scope variable with time zone id.
6) idOffset Describes a name for the page scope variable with GMT time offset.

for downloading:

Library: timezonetag.jar     Description: taglib.tld

 © Coldbeans      Comments?

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

Also in Coldtags: