Destroy taglib ver. 1.1

    JSP custom taglib lets you rewrite JSP page. Tag Destroy replaces the current page with the own body. If body is empty than the current page will be simply deleted. For example:
 


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

<d:Destroy>
 <script language="JavaScript">
  location.href="http://mysite.com";
 </script>
</d:Destroy>

here tag replaces the content (for the whole page) with the JavaScript code that redirects the future requests to some site.

You can use this component when processing automatically created JSP pages for example. Pages serve the first request only and getting destroyed.

Tags are:

Destroy

Body tag replaces page with the own body. Attributes are:

1) cond Optional attribute. Describes a boolean value tag's behavior depends on. Default value is true (replace page's content).

for downloading:

Library: destroytag.jar    Description: taglib.tld

© Coldbeans      Comments?

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

Also in Coldtags: