I wanted to make a navbar with a dynamically changing title, depending on the page who is including it
The code in the navbar.jsp is :
<li><a><label class="control-label" style="font-size:24px;
font-family:'Calibri'">| ${param.title}</label></a></li>
And the code in, for example, summary.jsp would be like
<jsp:include page="navbar.jsp">
<jsp:param name="title" value="Summary"/>
</jsp:include>
It works fine when I load it in my workspace (Eclipse Mars, JDK 1.8, Tomcat 8) It worked once on my team mate workspace (Eclipse Mars, JDK 1.7, Tomcat 6), and then it didn't
All you can read on the navbar instead of the title when you load summary.jsp is ${param.title} I read the other posts, I tried the second method that I found here :
<%= request.getAttribute("title") %>
in navbar.jsp, and then (in summary.jsp)
<% request.setAttribute("title", "Summary"); %>
But as a result I only had a null instead !
What could be the problem ?