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

<html>
<head><title>Request forwarded here</title></head>
<body>
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>.
</body>
</html>



           
       








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