How JSP Forwards a request

Advertisement

In this section you will study how jsp forwards a request.

How JSP Forwards a request

In this section you will study how jsp forwards a request.

The <jsp:forward> forwards the request information from one
resource to the other, for example, one jsp file to other. To forward a request from one page to
other, following syntax is required which forwards the request to
other page. If a string or an expression represents the URL to forward the page,
use the syntax:

<jsp:forward page={"relativeURL" |
"<%= expression %>"} />

If you want to send one or more name/value pairs as a parameters, use the
syntax: