title: how Bind Resquest to Domain class in Grails
body: <p>I don't like the command objects because have a lot duplicated code.. </p>
  
  <p>I want do something like this in vraptor.</p>
  
  <p>this is the Vraptor code a java framework</p>
  
  <pre><code> &lt;form action="&lt;c:url value='/produtos/adiciona'/&gt;"&gt;
  Nome:             &lt;input type="text" name="produto.nome" /&gt;&lt;br/&gt;
  Descrição:    &lt;input type="text" name="produto.descricao" /&gt;&lt;br/&gt;
  Preço:            &lt;input type="text" name="produto.preco" /&gt;&lt;br/&gt;
  &lt;input type="submit" value="Salvar" /&gt;
  &lt;/form&gt;
  
  @Resource
  public class ProdutosController {
  //...
  public void adiciona(Produto produto) {
      dao.adiciona(produto);
  }
  }
  </code></pre>
  
  <p>source <a href="http://vraptor.caelum.com.br/en/docs/ten-minute-guide/" rel="nofollow">http://vraptor.caelum.com.br/en/docs/ten-minute-guide/</a></p>
  
  <p>In grails don't works why??? anyone now about this</p>
  
  <pre><code>class User {
  String login
  String password
  }
  
  &lt;g:form name="form" url="[controller:'user',action:'login']"&gt;
      Login &lt;input type="text" name="user.login"/&gt;&lt;br/&gt;
      Senha &lt;input type="password" name="user.password"/&gt;&lt;br/&gt;
      &lt;input type="submit" value="go"/&gt;
  &lt;/g:form&gt;
  
  def login(User user){
  render("result ${user.login} and ${user.password}")
  }
  </code></pre>
  
  <p>The response is null "result null and null"</p>