One issue I am facing is with my navigation menu, where two items are pointing to the same URL.
<div id="LEFTmenu">
<ul>
<li><a href="app/link1">Page1</a></li>
<li><a href="app/link2">Page2</a></li>
<li><a href="app/link3">Page3</a></li>
<li><a href="app/link2">Page4</a></li>
<li><a href="app/link5">Page5</a></li>
</ul>
</div>
This means that Page2 and Page4 are both linked to the same URL.
[Update]
I am now looking for a way to make the selected link stand out when the user clicks on either Page2 or Page4, taking into consideration that the request then goes to link2. This needs to be done without using click events and preventDefault.
Since it's an MVC application, the request goes through a servlet (controller) and renders a JSP file. In this case, both Page2 and Page4 are linking to the same JSP file.
Below are the relevant files:
nav.jsp -- Navigation menu link2.jsp -- Contents specific to link2
I apologize for not providing these details earlier.