My question is really simple and I know there is an obvious answer to this. I am using jsp files and what I want to happen is when I click on page one only a link to page two will show up and vice versa when I click on page 2. But when I am on either page a link to both pages still shows up. Any idea on how to change this? Thank-you.
Menu
<ul id="Menu">
<li<c:if test="${param.active == 'Pageone'}"> class="active"</c:if>>
<a href="Pageone.jsp">Pageone</a>
</li>
<li<c:if test="${param.active == 'Pagetwo'}"> class="active"</c:if>>
<a href="Pagetwo.jsp">Pagetwo</a>
</li>
</ul>
Pageone
<jsp:include page="menu.jsp">
<jsp:param name="active" value="Pageone" />
</jsp:include>
Pagetwo
<jsp:include page="menu.jsp">
<jsp:param name="active" value="Pagetwo" />
</jsp:include>