Static inclusion involves including the contents
of the web component in a
JSP file at the time the JSP file is translated, <%@ include file="relativeURL" %>
It can refer to file like HTML, JSP, XML, or even
a simple .txt file�using a relative URL.
while in dynamic inclusion, the output of another component is included within the output of the JSP page when the JSP page is requested.
<jsp:include page="relativeURL" flush="true" />
<jsp:forward page="relativeURL" />
The page attribute is mandatory. It must be a relative URL, and it can refer to any static or dynamic web component, including a
servlet.