JSP Include Directive

tutorial and example
tutorial and example

As the name implies, include directive is used to include the content of other files such as HTML, JSP, text into the current JSP page. These files are included during translation phase.

Syntax of include directive

<@ include file=”file-name”>

Include directive tag can be placed anywhere in JSP page.

Example of Include Directive

This example expresses the simple way to include more than one file of different types within JSP page through include directive.