title: how to use grails pagination
body: <p>I'm newbie to grails and I've tried to use the grails pagination Tag found in grails documentation , i have a search form in my index.gsp </p>
  
  <p>i don't know how to pass params.max and params.offset 
  i am using only one action index </p>
  
  <p>i have an index action containing the query to list some books : </p>
  
  <pre><code>params.max = 10
  params.offset = 0
  def author=params.author // i get the input search params
  def max = 10
  def offset = 0
  if(params.max){
      max = params.max
  }
  if(params.offset){
      offset = params.offset
  }
  
  def bookPagin=Book.createCriteria().list {      
      eq("author", author)}
      maxResults(max)
      firstResult(offset )
  }
  </code></pre>
  
  <p>this is the paginate tag in my index.gsp : </p>
  
  <pre><code> &lt;g:paginate controller="displayBook" action="index" total="${bookPagin.size()}" params="[author:author]"/&gt;
  </code></pre>
  
  <p>now this code displays the first 10 results , but when i click on the second page 
  it doesn't take the input author params although i am pasing the author param in the GET request , is there any other solution ? </p>