Chapter 17 Snippets

p. 620

Step 9:

<c:choose>
  <c:when test="${Row.currencyString=='*'}">
    <tr bgcolor="Yellow">
  </c:when>
  <c:otherwise>
    <tr bgcolor="White">
  </c:otherwise>
</c:choose>

p. 622

Step 5:

<tr bgColor="#EEEEEE">

Completed code:

<c:choose>
  <c:when test="${Row.currencyString=='*'}">
    <tr bgcolor="Yellow">
  </c:when>
  <c:when test="${currentStatus.count%2==0}">
    <tr bgcolor="#EEEEEE">
  </c:when>
  <c:otherwise>
    <tr bgcolor="White">
  </c:otherwise>
</c:choose>

p. 624

Step 5, completed code:

<td>
  <logic:greaterThan scope="page" value="200" name="Row" property="ManagerId">
    <b>
  </logic:greaterThan>
  <c:out value="${Row['ManagerId']}"/>&nbsp;
  <logic:greaterThan scope="page" value="200" name="Row" property="ManagerId">
    </b>
  </logic:greaterThan>
</td>