JSP Include Directive

Prev Tutorial Next Tutorial

JSP Include Directive

It is used to include some other pages into the JSP document, It may be JSP file, html file or text file. This is known as static include because the target page is located and included at the time of page compilation.

The jsp page is translated only once so it will be better to include static resource.

Advantage of Include directive

Code Re-usability

Syntax of Include directive elements


<%@ include file="resourceName"%>


<%@ include file="footer.html" %>  

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

Prev Tutorial Next Tutorial

Download Projects


Download WhatsApp Status Video

Buy This Ad Space Only $50 per Month, Ad Size 300X250 Contact on: [email protected] WhatsApp no. 8882538826

Google Adsense Advertisements