Here is the jsp code :



<table id="productTable">

<c:forEach var="product" items="${categoryProducts}" varStatus="iter">

<tr class="${((iter.index % 2) == 0) ?...