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 Can We Take Thread Dump in Java ?

How Strategy Design Pattern is Different From State Design Patter ...

How Stack and Heap Work in Java Multi-threading Environment ?

How Can We Prevent Busy Waiting in Java ?

What is the Reason to Organize Classes and Interfaces in a Packag ...