Return taglib ver. 1.3

    Custom JSP taglib lets you forward (or redirect) the current request back to the page this request was originated from. For example, your main page forwards the request to subpage.jsp. Within this page you can do some like this:
 


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

<f:forwardBack/>

in order to return request back to the main page.

Tag redirectBack lets you redirect (rather than forwarding) request back to the original page. This tag lets you implement Redirect after POST pattern for example. E.g. your JSP page proceeds POST request from the original JSP and after that redirects user back to the original JSP with this taglib.

Tags are:

forwardBack

Tag forwards control back to the source component described by javax.servlet.forward.request_uri. Parameters are:

1) default Optional parameter. Describes a target URI in case of the source could not be detected trough the request
2) cond Optional parameter. Describes a boolean value this action depends on. If this value is true tag will perform forwarding. Default value is true.

redirectBack

Tag redirects control back to the source component described by Referer header. Parameters are:

1) default Optional parameter. Describes a target URI in case of the source could not be detected trough the request
2) cond Optional parameter. Describes a boolean value this redirection depends on. If this value is true tag will perform redirection. Default value is true.

for downloading:

Library: returntag.jar    Description: taglib.tld

© Coldbeans      Comments?

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

Also in Coldtags: