title: Struts2: How to read parameters from <jsp:include>
body: <p>When I include a JSP, either by <code>&lt;jsp:include /&gt;</code> and specify parameters - they are perfectly accessible by EL <code>${param.XXX}</code> but not by OGNL <code>%{#parameters.XXX}</code>. </p>
  
  <p>For example:</p>
  
  <pre><code>&lt;jsp:include page="fragment.jsp"&gt;
      &lt;jsp:param value="foo" name="bar" /&gt;
  &lt;/jsp:include&gt;
  </code></pre>
  
  <p>and in fragment.jsp</p>
  
  <pre><code>value of foo in EL   : ${param.bar} 
  value of foo in OGNL : &lt;s:property value="%{#parameters.bar}" /&gt;
  </code></pre>
  
  <p>WHY ??? What should I use instead in Struts Tags ?</p>
  
  <p>Note: with <code>&lt;s:include/&gt;</code> instead of <code>&lt;jsp:include/&gt;</code>, the parameter is not accessible even with EL.</p>