title: JSTL foreach: get Next object
body: <p>I need display product in list into 3 columns with <code>foreach</code>.</p>
  
  <p>Here is my code:</p>
  
  <pre><code>&lt;table&gt;
  &lt;c:forEach items="${lstProduct}" var="product" varStatus="status" step="3"&gt;
      &lt;tr&gt;
          &lt;td&gt;
               &lt;!--product of column left will be display here --&gt;
               ${product.id}
               ${product.name}
          &lt;/td&gt;
          &lt;td&gt;
               &lt;!--product of column middle will be display here --&gt;
               &lt;!--I need something like this:  productMiddle = product.getNext() --&gt;
          &lt;/td&gt;
          &lt;td&gt;
               &lt;!--product of column right will be display here --&gt;
               &lt;!-- productRight = productMiddle.getNext() --&gt;
          &lt;/td&gt;
      &lt;/tr&gt;
  &lt;/c:forEach&gt;
  &lt;/table&gt;
  </code></pre>
  
  <p>The question is how do I get next product in list? </p>