title: How to include an include tag parameter as value of an iterator tag in struts2
body: <p>I have a jsp *to_include.jsp* that i wanna include in another one using the &lt; s:include > tag passing a string parameter. Here is the code of the including jsp:</p>
  
  <pre><code>&lt;div&gt;
      &lt;s:include value="to_include.jsp"&gt;
          &lt;s:param name="list"&gt;list_of_objects&lt;/s:param&gt;
      &lt;/s:include&gt;
  &lt;/div&gt;
  </code></pre>
  
  <p>That <em>list</em> param is the name of an array object that is iterated inside the included jsp. I can easily access the list name in the include jsp using:</p>
  
  <pre><code>&lt;%= request.getParameter("list") %&gt;
  </code></pre>
  
  <p>But in the &lt; s:iterator > attribute <em>value</em> you can't include expression inside tags like the one just showed. My question is, how can i access the <em>list</em> parameter inside the iterator tag?</p>
  
  <pre><code>&lt;s:iterator value="?"&gt;
      ...
  &lt;/s:iterator&gt;
  </code></pre>