|
Home TOC |
|
Transferring Control to Another Web Component
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. You access this functionality from a JSP page with the
jsp:forwardelement:<jsp:forward page="/main.jsp" />Note that if any data has already been returned to a client, the
jsp:forwardelement will fail with anIllegalStateException.Param Element
When an
includeorforwardelement 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 with thejsp:paramelement:<jsp:include page="..." > <jsp:param name="param1" value="value1"/> </jsp:include>
|
Home TOC |
|