Test.jsp
<% String pageTitle = "Test Title"; %>
<jsp:include page="header.jsp">
<jsp:param name="pageTitle" value="<%=pageTitle%>"/>
</jsp:include>
header.jsp
To get the passing value you need to use param
EL
<!DOCTYPE html>
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>${param.pageTitle}</title>
<!--Need to use param EL-->
</head>
<body>
<h1>Hello World!</h1>
</body>
</html>