title: Passing c:forEach variable to a jsp:include
body: <p>I am trying to access some JSTL variables that were set on a JSTL for-loop in an include.</p>
  
  <p>Example:</p>
  
  <pre><code>&lt;c:forEach items="${cart.entries}" var="entry"&gt;
   &lt;jsp:include page="helper.jsp"&gt;&lt;/jsp:include&gt;
  &lt;/c:forEach&gt;
  </code></pre>
  
  <p>Inside helper.jsp I want to be able to reference the variable 'entry'. It keeps coming up as 'empty'. I thought maybe there might be a way to add scope to the forEach Variable like you can with normal set variables. </p>
  
  <p>Any ideas?</p>