In this tutorial, we are going to learn about JSP Include Directive. The JSP include directive is used to takes all the JSP file, HTML file or text file that exits on the specified file and copies into the file that include statement.
<%@ Include file="filename"; %>
JSP Include Directive Example
<p>Copyright © 2017 rathorji.in</p>
<!DOCTYPE html> <html> <head> <title>JSP include</title> </head> <body> <% out.print("Welcome to JSP Tutorial"); %> <%@ Include file="footer.html"; %> </body> </html>
Welcome to JSP Tutorial
Copyright © 2017 rathorji.in