Javatpoint Logo
Javatpoint Logo

Jsp Include Directive

The include directive is used to include the contents of any resource it may be jsp file, html file or text file. The include directive includes the original content of the included resource at page translation time (the jsp page is translated only once so it will be better to include static resource).

Advantage of Include directive

Code Reusability

Syntax of include directive

Example of include directive

In this example, we are including the content of the header.html file. To run this example you must create an header.html file.

Note: The include directive includes the original content, so the actual page size grows at runtime.

Youtube For Videos Join Our Youtube Channel: Join Now


Help Others, Please Share

facebook twitter pinterest

Learn Latest Tutorials


Trending Technologies

B.Tech / MCA