Custom JSP tag. Tag Redirect redirects
control to the specified page. Tag can produce URL encoding for sessions support.
One parameter to sets the target page. Also this taglib clears JSP writer's buffer
before the redirection. For example:
<%@ taglib uri="taglib.tld" prefix="send" %>
Tag setParameter lets you define a GET parameter for the request
(value will be encoded automatically):
<%@ taglib uri="taglib.tld" prefix="send" %> <html> ... <send:Redirect to="http://www.server.com/nextpage.htm"> <send:setParameter name="A">value for A</send:setParameter> <send:setParameter name="B">value for B</send:setParameter> </send:Redirect> ... </html> Tags are: Redirect Redirects request to the given URL. Parameters are: 1) to Describes a target URL
setParameter Body tag defines a GET parameter for the URL. Parameters are: 1) name Describes a name for your parameter
for downloading: Library: redirtag.jar Description: taglib.tld See also Coldtags suite - the largest collection of custom JSP tags. |
Also in Coldtags:
|