Name
Include Directive
Synopsis
Includes a static file, merging its content with the including page before the combined result is converted to a JSP page implementation class.
Syntax
<%@ include file="pageOrContextRelativePath
" %>
Attributes
Attribute name |
Default |
Description |
file |
No default |
A page-relative or context-relative URI path for the file to include. |
A page can contain multiple include
directives.
The including page and all included pages taken together forms what
is called a JSP translation unit.
Example
<%@ include file="header.html" %>
Get JavaServer Pages, 3rd Edition 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.