title: Grails: Pass Params from Controller to Controller at end of Webflow
body: <p>Is it possible to pass 'params' in a redirect at the end of a Webflow? Basically the purpose of this variable or param passing from controller to controller is this, I want to have a variable or ${param.xyz} available on the view page <strong>only</strong> if the flow has been completed. </p>
  
  <pre><code> class Example1Controller{
      def startFlow = {
          begin {
          ....
          }
          ....
          ....    
          finished {
              action {
                  flash.message = 'success'
              }
              redirect(controller: 'example2', action: 'myaccount', params: [author: "Stephen King"])
          } 
       }
    }
  </code></pre>
  
  <p>OTHER CONTROLLER</p>
  
  <pre><code> class Example2Controller{
       def myaccount() {
           def here = $params.author
           return [me:here]
       }
   }
  </code></pre>
  
  <p>GSP VIEW</p>
  
  <pre><code> &lt;html&gt;
       &lt;body&gt;
           &lt;g:if test="${params.me}"&gt;
               &lt;p&gt;This is what I want to display: **${me}**&lt;/p&gt;
               &lt;p&gt;But it must come from the first controller, from the flow.&lt;/p&gt;
           &lt;/g:if&gt;
       &lt;/body&gt;    
   &lt;/html&gt;
  </code></pre>
  
  <p>Basically the purpose of all this variable passing from controller to controller is this. I want to have a variable or ${param.} available on the view page only if the flow has been completed.  </p>