What is a include directive in JSP?


The include directive is used to include a file during the translation phase. This directive tells the container to merge the content of other external files with the current JSP during the translation phase. You may code the include directives anywhere in your JSP page.

The general usage form of this directive is as follows −

<%@ include file = "relative url" >

Updated on: 30-Jul-2019

143 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements