The include Directive |
This directive notifies the container to include the content of the resource in the current JSP, inline, at the specified place. Of course the file specified should be accessible and available to the JSP container. It is important to note that the content of the included file is parsed by the JSP and this happens only at translation time. (The include action is used to include resources at runtime, as we will see later.) The included file should not be another dynamic page. Most JSP containers usually keep track of the included file and recompile the JSP if it changes.
        <%@ include file="Filename" %>
Example
        <%@ include file="/examples/myfile.html" %>

file |
The static filename to include