title: Using data from one controller action to another without making database call
body: <p>I am using grails 2.4.4</p>
  
  <p>I have below details.</p>
  
  <pre><code>projectController
  def index(){
  
      def projectList = REST WEB SERVICE CALL TO GET LIST OF PROJECT FROM DB.
  }
  
  def search1(){  // AJAX CALL
  
      def projectList = REST WEB SERVICE CALL TO GET LIST OF PROJECT FROM DB.
      def resultList = SEARCHING PROJECTNAME FROM ABOVE projectList.
  }
  
  def search2(){ // AJAX CALL
  
      def resultList = SEARCH BY PROJECTNAME FROM EXISTING projectList WITHOUT MAKING CALL FROM DB.
  }
  </code></pre>
  
  <p>I know controllers are stateless.</p>
  
  <p>Even thought projectList remains constant i have to make call to DB?</p>
  
  <p>Is there any way to search from existing projectList without Reloading it from DB.</p>
  
  <p>I am looking for JSF View scope like functionality in grails.</p>
  
  <p>Thanks.</p>