Pr.Pg Next Pg

JSP Forward Program tutorials

 

JSP forwarded page

Sam Sir

<%-- index005.jsp --%>

<%-- JSP forwarded page --%>

<html>

<head>

<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">

<title>JSP Page Forward</title>

</head>

<body>

<center><h3>jsp:forward demo</h3></center>

<h5>Hello this page was forwarded using jsp:forward tag</h5>

</body>

</html>

 

 

 

 

 

Program to show jsp:forward and this page will forward to index005.jsp

Sam Sir

<%-- forward.jsp --%>

<%-- Program to show jsp:forward --%>

<%@ page language ="java" %>

<html>

<head><title>jsp forwarding a request</title></head>

<jsp:forward page="index005.jsp"/>

</html>

Output

JSP Forward

Pr.Pg border                                              Next Pg