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

What is the Advantage of Using Unicode Characters in Java ?

What is a Compile Time Constant in Java ?

What is the Difference Between pass by reference and pass by valu ...

Why Should You Define a Default Constructor in Java ?

Enumeration and Iterator, Which One Has Better Performance in Jav ...