Include Directive

Intertech Tutorials

Include Directive

The include directive instructs the JSP compiler to include a complete file into the current JSP file. Since the contents are included at compile time, it is as if the contents of the included file were pasted directly into the original file. Included files generally have the extension "jspf" (for JSP Fragment):

<%@ include file="interechheader.jspf" %>

The file attribute on the include directive is the pathname to the included file. The pathname is always a relative URL

Copyright (c) 2008-2013. Intertech, Inc. All Rights Reserved. This information is to be used exclusively as an online learning aid. Any attempts to copy, reproduce, or use for training is strictly prohibited.