Hi there!
I have a page which consists out of three files:
- header.jsp
- sidebar.jsp
- main.jsp
header.jsp contains a navigational bar in which I want to highlight the
page currently be shown, e.g.
-------------------------------------------------
Home | Item1 | Item2 | *Item3*| Item4
-------------------------------------------------
if Item3 is the active page.
Now, my first approach was to include header.jsp and sidebar.jsp with
<jsp:include page="../includes/Header.jsp" >
<jsp:param name="highlight" value="home" />
</jsp:include>
<%@ include file="../includes/Sidebar.jsp" %>
Within Header.jsp I checked against the request parameter highlight:
<% String hl = request.getParameter("highlight"); %>
<a <% if (hl.equals("guestbook")) { %> class="highlight" <%
} %> href="/Phoenix/jsp/guestbook.jsp">Guestbook</a> |
The problem is that this approach understandably doesn't work well with
URL-rewriting.
Unfortunately changing the code to use <html:link> instead of <a href>
as in
<html:link forward="guestbook"> <% if
(hl.equals("guestbook")) { %> class="highlight" <% } %>
Guestbook </html:link> |
doesn't work. I suppose that nested tags arren't allowed here.
Does someone know a solution to this problem?
I'm fairly new to struts and html/css, so any help would be greatly
appreciated!
Thanks in advance,
Steven McClintoc
--
Lust, ein paar Euro nebenbei zu verdienen? Ohne Kosten, ohne Risiko!
Satte Provisionen für GMX Partner: http://www.gmx.net/de/go/partner
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]