JSONP taglib ver. 1.1

    Custom JSP tags library lets you create JavaScript code for loading data from the external source (URL). On-demand JavaScript pattern. For example, this code requests data from Twitter in JSONP format (your own JavaScript function myFunction will accept requested data):

<%@ taglib uri="taglib.tld" prefix="j" %>

<j:JSONP script="true" url="http://twitter.com/users/show/bob.json?callback=myFunction" />

Tags are:


Body tag lets you create (add to the page) JavaScript code for data loading. Attributes are:

1) url Describes an external URL
2) script Optional attribute. Describes a boolean value. If this value is true tag will wrap the output with a <script> tag. Default value is false.

for downloading:

Library: jsonptag.jar    Description: taglib.tld

 © Coldbeans      Comments?

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

Also in Coldtags: