title: How to get Get parameter from url in grails
body: <p>I have a project where I am creating links like this: </p>
  
  <p><a href="http://abcdefc.com/Nfploginsystem/registration/resetpass?key=1234" rel="nofollow">http://abcdefc.com/Nfploginsystem/registration/resetpass?key=1234</a></p>
  
  <p>The action for that link gets set like <code>&lt;g:form action="chkresetpass" method="GET"&gt;</code>
  I want to pass the name of the controller as a key="value" pair like:  <code>action="chkresetpass"</code>
  So, the controller can respond with code like this:</p>
  
  <pre><code>def chkresetpass(){  
         flash.message= params.key 
         redirect(action:"resetpass");
         }
  </code></pre>
  
  <p>but i'm not able to get that parameter from the url -! 
  Can anyone help me with this, please?</p>