JSP include Directive

The JSP include directive instructs the JSP engine to include the actual contents of another file that may be a static HTML page, text file, or JSP file. The included file may declare methods or variables. The included file is inserted into the current page at translation time. include directive is a static include. The syntax of include directive:

<%@ include file=“included.jsp” %>

A banner page, heading page, copyright page, or a footnote page are perfect examples of files to be included in a JSP page.

Search: