June 2004
Intermediate to advanced
1568 pages
30h 33m
English
The mechanism for transferring control to another Web component from a JSP page uses the functionality provided by the Java Servlet API as described in Transferring Control to Another Web Component (page 462). You access this functionality from a JSP page by using the jsp:forward element:
<jsp:forward page="/main.jsp" />
Note that if any data has already been returned to a client, the jsp:forward element will fail with an IllegalStateException.
When an include or forward element is invoked, the original request object is provided to the target page. If you wish to provide additional data to that page, you can append parameters to the request object by using the jsp:param element: ...
Read now
Unlock full access