You can use JSTL<c:import>
with <c:param>
which is similar to above import statements as like in the JSP.
The <c:import>
tag provides all of the functionality of the action but also allows for inclusion of absolute URLs.
we can also include those contents or files which are not a part of the current web application but lying somewhere outside the web application. So, the jstl <c:import>
is more useful than the <jsp:include>
.
By the following syntax
<%@ taglib uri="http://java.sun.com/jsp/jstl/core" prefix="c" %>
<c:import url = "yourPage.jsp">
<c:param name = "anyParameter" value = "<h1>Here is your value</h1>"/>