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 Will You Implement a Thread Safe JSP Page ?

How Can We Find the Memory Usage of JVM From Java Code ?

How Does Garbage Collection Work in Java ?

Why an Object Used as Key in HashMap Should Be Immutable in Java ...

How Can Be Read Data From a Form in a JSP ?