<c:forEach items="${yourarray}" var="item">
  <c:if test="${item == 0}">
    output whatever you what
  </c:if>
  <c:if test="${item == 1}">
    output whatever you what
  </c:if>
</c:forEach>