title: Dynamic variables in grails webflow
body: <p>I have a problem handling variables in grails webflow</p>
  
  <p>Relevant part of the controller looks like this</p>
  
  <pre><code>ipcount{
          on('next'){
              flow.ipcount = params.int('ipcount')
  
              [flow: flow]
          }.to('systems')
          on('cancel').to('finish')
      }
      systems{
          on('next') {
              flow.hoster= params.hoster
  
              for (j in params.ipcount){
  
                  flow.ip[j] = params.ip[j]
                  flow.os[j] = params.os[j]
                  flow.dns[j] = params.dns[j]
  
              }
  </code></pre>
  
  <p>I create a dynamic form in with the variable ipcount, which works fine. The problem is, I don't know how to handle the submitted values and if what I'm doing is correct. </p>
  
  <p>At least when I want to try to display the results from the webflow I get an error</p>
  
  <p>This is what I tried in the last step of the GSP file</p>
  
  <pre><code>&lt;td valign="top" class="name"&gt;IP: ${flow.ip['1']}&lt;/td&gt;
  
  &lt;td valign="top" class="name"&gt;IP: ${flow.ip[1]}&lt;/td&gt;
  
  &lt;td valign="top" class="name"&gt;IP: ${flow.ip[${i}]}&lt;/td&gt;
  </code></pre>
  
  <p>Nothing from the above works. I only get an error while trying to display the variables.</p>