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
for downloading: Library: timezonetag.jar Description: taglib.tld See also Coldtags suite - the largest collection of custom JSP tags.
|
Also in Coldtags:
|