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

Why String Class is Immutable or Final in Java ?

What are the Rules of Method Overloading and Method Overriding in ...

What is the Difference Between an ArrayList and a LinkedList Data ...

How Does Garbage Collection Work in Java ?

What are the Differences Between a List and Set Collection in Jav ...