title: Rendering command validation errors across a redirect
body: <p>I cannot render the errors from my command object. It does the job well but my .gsp view does not render the errors I raise. </p>
  
  <p>Here is my controller action:</p>
  
  <pre><code>def handleModifyProfile2 = { CreditProviderModificationCommand cpmc -&gt; // bind params to the command object
     if (cpmc.hasErrors()) {
        flash.message = "Error modifying your profile:"
        redirect(action: "modifyProfile", params: [creditProvider : cpmc])
     } ...
  </code></pre>
  
  <p>Here is how I try to render the errors in my .gsp view: </p>
  
  <pre><code>&lt;g:hasErrors bean="${creditProvider}"&gt;
     &lt;div class="errors"&gt;
         &lt;g:renderErrors bean="${creditProvider}" as="list" /&gt;
     &lt;/div&gt;
  &lt;/g:hasErrors&gt;
  </code></pre>
  
  <p>How can I get the errors to be displayed in the view?</p>