How Will You Include a Static File in a JSP Page ?

We can use include directive of JSP to include a Static page in JSP. In this approach, we use translation phase to include a static page. We have to specify the URL of the resource to be included as file attribute in this directive.

<%@ include file="header.html" %>



You May Interest

How HashMap Works in Java ?

Java How To Find The Average Of 10 Numbers Using A While Loop

What is the Use of Run Time Polymorphism in Java ?

Why Do We Use JSP Instead of Servlet in Java ?

What is an Output Comment in JSP ?