Redirection filter taglib ver. 1.2


    Custom JSP taglib. You can use this taglib with Redirect filter. This taglib lets you add/remove the redirection rules right from your JSP pages. For example let us define that any request to /a/test1.jsp must be redirected to /mypage.jsp
 

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

<r:addRedirection url="/a/test1.jsp">/mypage.jsp</r:addRedirection>

Tags are:

addRedirection

Body tag lets you add a redirection rule. Body describes a target url. Parameters are:

1) url Describes a basic url.
2) cond Optional attribute. Describes a boolean value tag's behavior depends on. Default value is true (add redirection).
 

removeRedirection

removes the redirection rule. Parameters are:

1) url Describes a basic url.
2) cond Optional attribute. Describes a boolean value tag's behavior depends on. Default value is true (remove redirection).
 

for downloading:

 Library: redirectflt.jar     Description: taglib.tld

 © Coldbeans      Comments?

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

Also in Coldtags: