Client Side Redirect taglib ver. 1.2


    Custom JSP taglib lets you create code for client side redirect. Instead of using a 301 redirect, you can create a combination of a "META" redirect and Javascript to send your visitors to new location. Both META redirects and Javascript redirects overwrite the original referrer. The referrer becomes the page with that code on it. For example:
 


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

<r:ClientRedirect> http://servletsuite.com </r:ClientRedirect>

Tags are:

ClientRedirect

Body tag creates code for client side redirect (META tag and Javascript code). Tag's body describes an URL for redirection. Parameters are:

1) url Optional parameter. Describes an url for redirection.
2) cond Optional parameter. Describes a boolean value tag's behavior depends on. Default value is true (redirect)
3) time Optional parameter. Describes a time (in seconds) for the redirection. Default value is 0 (right now)

for downloading:

Library: credirecttag.jar    Description: taglib.tld

© Coldbeans      Comments?

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

     

Also in Coldtags: