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