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

Google Adsense Advertisements
Free Classified Site – Bedpage

Yahoo Advertisements