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.