tags:

views:

60

answers:

1

is there a better logic to highlight the current jsp page link in navigation page.

A: 

Compare the URLs in your links with request.getRequestURL() and, if they match, give them the class current. Now, you can assign a style:

a.current {
    text-weight: bold;
    text-underline: none;
    color: black;
}

See this question how to handle includes and forwards.

Aaron Digulla