Hit taglib ver. 1.2

    Custom JSP taglib. Lets you force client side cross-domain HTTP requests with JavaScript. This tag lets you simulate a hit (just HTTP GET request) to the external site. You do not need to monitor the response, read status code etc. Just a new request. And it is a client side requests. But it could be a cross-domain request too without the sandbox restrictions. For example:
 


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

<h:HitSite url="http://site_to_be_requested" />

 

Tags are:

HitSite

Body tag lets you force client side cross-domain HTTP requests with JavaScript. Attributes are:

1) url Describes a target URL.
2) javascript Optional attribute. Possible values are true and false. Set this value to true if you are using tag inside of your own JavaScript code. Default value is false (tag is used outside of JavaScript code).
3) cond Optional attribute. Describes a boolean attribute tag's behavior depends on. Default value is true (create a hit)
 

for downloading:

 Library: hittag.jar     Description: taglib.tld

 © Coldbeans      Comments?

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

Also in Coldtags: