What is the difference between include action and include directive in JSP?


include action lets you insert files into the page being generated. The syntax looks like this −

<jsp:include page = "relative URL" flush = "true" />

Unlike the include directive, which inserts the file at the time the JSP page is translated into a servlet, this action inserts the file at the time the page is requested.

Updated on: 30-Jul-2019

915 Views

Kickstart Your Career

Get certified by completing the course

Get Started
Advertisements