<jsp:include>

The <jsp:include> action provides a mechanism for including additional static and dynamic resources in the current JSP page. The syntax for this action is as follows:

<jsp:include page="urlSpec" flush="true" />

and

<jsp:include page="urlSpec" flush="true">
    <jsp:param … />
</jsp:include>

The first syntax description does a request-time inclusion, whereas the second contains a list of param subelements that are used to argue the request for the purpose of inclusion. Table 10.2 contains the attributes and their descriptions for the <jsp:include> action.

Table 10.2. The Attributes for the <jsp:include> Action
AttributeDefinition
pageThis attribute represents the relative URL of the resource to be included.
flushThis attribute represents ...

Get Pure Java Server Pages™ now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.