|
Weather taglib ver. 1.1 Custom JSP taglib lets you obtain a world weather forecast from site yr.no and use
extracted data in your applications. As per site policy you can use data for free, just provide a copyright info as well as the link to the original data.
For example, the following code prints weather forecast for Moscow:
<%@ taglib uri="taglib.tld" prefix="w" %>
<w:setLocation url="http://www.yr.no/place/Russia/Moscow/Moscow/" id="A"/>
<p>Title:<w:getChannelTitle feedId="A"/>
<p>Description:<w:getChannelDescription feedId="A"/>
<p>Copyright:<w:getChannelCopyright feedId="A"/>
<w:forEachDay feedId="A">
Link:<%=itemLink%>
Title:<%=itemTitle%>
Description:<%=itemDescription%>
</w:forEachDay>
Try It Out: http://www.servletsuite.com/servlets/weathertag.htm
|