conditional attribute - how to
843838Mar 28 2007 — edited Mar 28 2007Hi,
I'm writing JSP document, so the jsp must be well formed.
I want to set the background of even and odd table rows by adding a class only on even rows (to avoid unnecessary source - network traffic).
Something like
if (even)
<tr class="even>
else
<tr>
How can this be done in JSP documents?
I've tried many approaches with JSTL,... but the "problem" is that condition can only be checked with <c:if> and <jsp:attribute> within <c:if> sets the attribute to <c:if>.
What am I missing?
Any ideas?