title: How to use foreach in struts
body: <p>I have this struts code where I am using forEach-</p>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;c:forEach items="${reviewList}" var="reviewListId"&gt;
  &lt;tr&gt;
     &lt;td colspan="6" class="we_have"&gt;&lt;c:out value="${reviewListId}" /&gt;
     &lt;/td&gt;
  &lt;/tr&gt;
  </code></pre>
  
  <p></p>
  
  <p>I have added this taglib</p>
  
  <pre><code>&lt;%@ taglib uri="http://java.sun.com/jstl/core" prefix="c"%&gt;
  </code></pre>
  
  <p>But in place of <code>forEach</code> tag showing an error that is-</p>
  
  <blockquote>
    <p>According to TLD or attribute directive in tag file, attribute items does not accept any expressions</p>
  </blockquote>
  
  <p>but in place of tag lib its not showing any error that means its supporting this tag lib but don't know why its not supporting forEach tag.</p>