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

JSPJava 8Object Oriented ProgrammingProgramming

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.

Published on 20-Mar-2019 10:30:02