YQL taglib ver. 1.1

    Custom JSP tags. This taglib lets you perform YQL requests. Options include data caching.

For example:
 


<%@ taglib uri="taglib.tld" prefix="y" %>
<html>

<!-- perform request and print XML data -->
<%@ page contentType="text/xml" %>
<y:YQL>select * from upcoming.events where location='San Francisco' and search_text='dance' </y:YQL>

<!-- perform request, save output in the page scope variable and cache it for 10 min -->
<y:YQL ttl="600" id="A">select * from upcoming.events where location='San Francisco' and search_text='dance' </y:YQL>

</html>

Tags are:

YQL

Body tag lets you perform YQL requests. Tag's body describes a query. Parameters are:

1) id Optional attribute. Describes a name for page scope variable (type is java.lang.String) that will keep the result of your request. By default tag will simply print the requested data.
2) format Optional parameter. Describes an output format. Possible values are xml or json. Default value is xml
3) ttl Optional parameter: caching time (in seconds). Default value is 0 (no cache)
3) scope Optional parameter: scope for cache. Possible values are application or session. Default value is application (cache will be used if you set ttl parameter).
5) localPath Optional parameter. If you set this parameter than tag will save downloaded data in the local file system. Parameter describes some file path (file will be created) or some existing directory. By default is empty (do not save data).
6) timeout Optional parameter. Describes a timeout for your request (in milliseconds).
7) proxyHost Optional parameter. Describes proxy settings for your system.
8) proxyPort Optional parameter. Describes proxy settings for your system.
 

for downloading:

    Library: yqltag.jar    Description: taglib.tld

© Coldbeans      Comments?

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

Also in Coldtags: