title: Grails pass params to image
body: <p>How can i get i have an image, inside a each tag load dynamically by name, something like this:</p>
  
  <pre><code> &lt;g:link controller="conferenceUser"&gt;&lt;img src="${resource(dir:'images',file:'solr.png')}" height="100px" width="200px"/&gt;&lt;/g:link&gt;
  </code></pre>
  
  <p>but instead of file:'solr.png', have ${it.xxx} like this:</p>
  
  <pre><code>&lt;g:link controller="conferenceUser"&gt;&lt;img src="${resource(dir:'images',file:'${it.xxx}.png')}" height="100px" width="200px"/&gt;&lt;/g:link&gt;
  </code></pre>