Session Management in JSP
 
Forwarding Requests
 
With the <jsp:forward> tag, we can redirect the request to any JSP, servlet, or static HTML page within the same context as the invoking page. This effectively halts processing of the current page at the point where the redirection occurs, although all processing up to that point still takes place:
<jsp:forward page="somePage.jsp" />
 
The invoking page can also pass the target resource bean parameters by placing them into the request, as shown in the diagram:
 
 
A <jsp:forward> tag may also have jsp:param subelements that can provide values for some elements in the request used in the forwarding:
<jsp:forward page="<%= somePage %>" >
<jsp:param name="name1" value="value1" />
<jsp:param name="name2" value="value2" />
</jsp:forward>