jsp:include action tag
The jsp:include action tag is used to include the content of another resource it may be jsp, html or servlet.
The jsp include action tag includes the resource at request time so it is better for dynamic pages because there might be changes in future.
The jsp:include tag can be used to include static as well as dynamic pages.
Advantage of jsp:include action tag
Code reusability : We can use a page many times such as including header and footer pages in all pages. So it saves a lot of time.
Difference between jsp include directive and include action
Syntax of jsp:include action tag without parameter
Syntax of jsp:include action tag with parameter
Example of jsp:include action tag without parameter
In this example, index.jsp file includes the content of the printdate.jsp file.