Forward a request : Include « JSP « Java

Forward a request

// getrequest.jsp
anything here will now appear in the browser
<jsp:forward page="gotForwardedRequest.jsp"/>
anything here will not appear

//File: gotForwardedRequest.jsp

<head><title>Request forwarded here</title></head>
This page received a forwarded request from <b>getRequest.jsp</b>, 
<br>This page is the output from <b>gotForwardedRequest.jsp</b>, 
<br>but the URL is for <b>getRequest.jsp</b>.


Related examples in the same category

1.Jsp page includes another Jsp page
2.Jsp Include Static HTML
3.Using Include And Pass Value
4.JSP Include
5.Include another file
6.Using Includes
7.Passing parameters during including
8.JSP standard action: include