title: How to use JSTL <c:forEach> with Struts2 <s:url>?
body: <p>I have this code that actually works:</p>
  
  <pre><code>&lt;s:iterator value="breadcrumb.links" var="link"&gt;
      &lt;s:url action='%{#link.url}' var="url" /&gt;
      &lt;li&gt;
         &lt;a href="${url}"&gt;${link.name}&lt;/a&gt;
      &lt;/li&gt;
  &lt;/s:iterator&gt;
  </code></pre>
  
  <p>How con I do the same thing but with c:foreach instead of s:iterator ?</p>
  
  <p>I tried with:</p>
  
  <pre><code>&lt;c:forEach items="${breadcrumb.links}" var="link"&gt;
      &lt;s:url action='${link.url}' var="url" /&gt;
      &lt;li&gt;
          &lt;a href="${url}"&gt;${link.name}&lt;/a&gt;
      &lt;/li&gt;
  &lt;/c:forEach&gt;
  </code></pre>
  
  <p>but I get the error:</p>
  
  <blockquote>
    <p>According to TLD or attribute directive in tag file, attribute action does not accept any expressions</p>
  </blockquote>
  
  <p>Thankyou.</p>