Define Jsp-include and Jsp-forward



As part of Jsp Specification JavaSoft has specified the following variables.

Syntax:

Include   <jsp:include page =”<filename>” />

This inclusion of file is dynamic and the specified file is included in the JSP file at run-time i.e. out put of the included file is inserted into the JSP file.

Forward   <jsp:forward page=”<filename>” />

This will redirect to the different page without notifying browser.

Random Posts

  • Can we provide a constructor in the servlet class
  • Explain the Instance Variables in Servlets
  • Difference between session.save() and session.saveOrUpdate()
  • Define ServletInputStream
  • Java Basics Interview Questions

Post a Comment