title: How to access dynamic attributes in JSP (Struts2)
body: <p>In Action I re set sent parameters.</p>
  
  <pre><code>    for(Enumeration&lt;String&gt; enumParams = request.getParameterNames(); enumParams.hasMoreElements();) {
          String name = enumParams.nextElement();
          String value = request.getParameter(name);
          request.setAttribute(name, value);
      }
  </code></pre>
  
  <p>On the JSP I would like to access the request attribute values.</p>
  
  <pre><code>&lt;s:iterator value="variables"&gt;
      &lt;input type="text" 
          id="&lt;s:property value="sign"/&gt;"
          name="&lt;s:property value="sign"/&gt;"  
          value="&lt;s:property value="%{#attr['sign']}"/&gt;" /&gt;
  &lt;/s:iterator&gt;
  </code></pre>
  
  <p>(variables are objects with field sign, etc.)</p>
  
  <p>Currently I get with <code>&lt;s:property value="%{#attr['sign']}"/&gt;</code> only the sign of the variable, not the value. It does not evaulate <code>'sign'</code>.</p>
  
  <p>Generated HTML:</p>
  
  <pre><code>&lt;input id="A" name="A" value="A" type="text"&gt;
  </code></pre>
  
  <p>So if hard-code sign like this <code>&lt;s:property value="%{#attr['A']}"/&gt;</code>, I get the correct value... </p>
  
  <p>Any clues? Please.</p>