Master java skills

jsp:forward

jsp forward tag is used to forward the request from one resource to another.

index.jsp

<html>
   <body>
      <h2>The request will be forwarded</h2>
      <jsp:forward page="displayDate.jsp" />
   </body>
</html>

displayDate.jsp

<html>
   <body>  
      <h2>This is jsp:forward action example</h2>
      Current Date : <%=java.util.Calendar.getInstance().getTime() %>  
   </body>
</html>

Output: