Include Directive
The include
directive includes a file, merging its
content with the including page before the combined result is
converted to a JSP page implementation class. It supports the
attribute described in Table 1-1.
Name |
Default |
Description |
|
No default |
A page- or context-relative URI path for the file to include. |
A single page can contain multiple include
directives. Together, the including page and all included pages form
a JSP translation unit.
Example:
<%@ include file="header.html" %>
Get JavaServer Pages Pocket Reference 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.