The <jsp:include> element allows you to include either static and dynamic files in a JSP file. The results of including static and dynamic files are quite different. If the file is static, its content is included in the calling JSP file. If the file is dynamic, it acts on a request and sends back a result that is included in the JSP page. When the include action is finished, the JSP container continues processing the remainder of the JSP file.

<jsp:include> element handles both types of files, so it is convenient to use when you don’t know whether the file is static or dynamic.


<title>demo of jsp include</title>
<body bgcolor="#551a8b">
<center>What is new Jsp.
These are include pages<ol>
<li><jsp:include page="step1.html" flush="true">
<li><jsp:include page="step2.html" flush="true">
<li><jsp:include page="step3.html" flush="true">
<li><jsp:include page="step4.html" flush="true">