title: Loop using Jstl
body: <p>I want to write a loop in JSTL code to print :
  Start
  1
  2
  3
  4
  5
  End
  Start
  6
  7
  8
  9
  10
  End...
  Start 
  96
  97 
  98
  99 
  100 
  End</p>
  
  <p>I try to use this code :</p>
  
  <pre><code>&lt;c:set var="start" value="Start"/&gt;
  &lt;c:set var="end" value="End" /&gt;
  &lt;c:set var="count" value="0" /&gt;
  &lt;c:forEach items="${child.children}" var="c"&gt;
  
      &lt;c:choose&gt;
          &lt;c:when test="${count == 0 }"&gt;
              ${start}&lt;c:out value="${count}" /&gt; &lt;c:set
                      var="count" value="${count + 1}" /&gt;
              ${end}&lt;/c:when&gt;
              &lt;c:when test="${count % 5 == 0}"&gt;
                     ${start}&lt;c:out value="${count}" /&gt;
                          &lt;c:set var="count" value="${count + 1}" /&gt;
                     ${end}
                  &lt;/c:when&gt; &lt;c:otherwise&gt;
                      &lt;c:out value="${count}" /&gt;
                      &lt;c:set var="count" value="${count + 1}" /&gt;
                  &lt;/c:otherwise&gt;
          &lt;/c:when&gt;
      &lt;/c:choose&gt;
  &lt;/c:forEach&gt;
  </code></pre>
  
  <p>but it does not work !</p>