<jsp:include> |
The <jsp:include> action includes the response from another JSP page, servlet, or static file in the same web application. The execution of the current page continues after including the response generated by the target resource. When the <jsp:include> action is executed, the buffer is flushed of any response content. Although the flush attribute can control this behavior, the only valid value in JSP 1.1 is true. This limitation will likely be lifted in a future version of JSP.

Even in the target resource, the URI path information available through the implicit request object reflects the URI path information for the source JSP page. All other request information is also left untouched, so the target resource has access to all the original parameters and headers passed with the request. Additional parameters can be passed to the target resource through <jsp:param> elements in the <jsp:include> element's body.

Example:

    <jsp:include page="navigation.jsp" />

page | String
Request-time value accepted: yes
Mandatory. A page- or context-relative URI path for the resource to include.

flush | String
Request-time value accepted: no
Mandatory in JSP 1.1, with true as the only accepted value.