Hi,
I am trying to set alternate color for the table , this is how I used...but it never takes the color...waht am I doing wrong? see the code in red
<%@ taglib uri="/WEB-INF/tlds/c.tld" prefix="c" %>
<%@ taglib uri="/WEB-INF/tlds/fmt.tld" prefix="fmt" %>
<jsp:useBean id="populardocsbean" class="com.gartner.wcw.servlet.PopularDocsBean"/>
<vel:velocity>
#if ($velocityCount % 2 == 1) #set($color="#fcfcfc") #else #set($color="#fefefe") #end
</vel:velocity>
<html>
<head>
<title>EXP TOP 50</title>
</head>
<body>
<c:set target='${populardocsbean}' property='type' value='EXPUSR_WEEK'/>
<c:set var="idx" value="1"/>
<table cellpadding="0" cellspacing="0" border="0" width="100%">
<!-- Comment = 49 -->
<c:forEach var="doc" varStatus='idx' items="${populardocsbean.list}" end="49">
<tr>
<td colspan="2"><hr size="1" width="100%" color="#F5EED3"></td>
</tr>
<vel:velocity>
<tr height="67" bgcolor="$color">
</vel:velocity>
<td width="52" class="GoldBold90"> <c:out value="${idx.count}"/>.</td>
<td ><b><fmt:formatDate value="${doc.lastRevDt}" pattern="d MMMMM yyyy"/></b><br>
<img src="" width="1" height="3" border="0" alt=""><br>
<a href="" value="${doc.resId}"/>"
class="BoldBlueLink" target="_blank" value="${doc.resId}"/>');
return false;"><c:out value="${doc.title}"/></a><br>
<img src="" width="1" height="3" border="0" alt=""><br>
<c:forEach var="author" varStatus='aidx' items="${doc.authors}">
<a href="" value="${author.id}"/>" class="ThinBlueLink" value="${author.id}"/>'); return false;"><c:out value="${author.fullname}"/></a>
<c:if test="${not aidx.last}"><font color="#F5EED3"> | </font></c:if>
</c:forEach></td>
</tr>
</c:forEach>
</table>
</body>
</html>
--------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
