title: Grails: How to pass arrays to GSP pages
body: <p>I need to display list of directories in GSP pages. Can you please guide me how to pass this array to GSP. </p>
  
  <p>Here is my below sample code.</p>
  
  <pre><code>         File dir = new File(petl_dir_path)
            def list= []                      
            dir.eachDir{ list &lt;&lt; it.name }       
  </code></pre>
  
  <p>Please  guide</p>
  
  <p>Thanks</p>