title: Play! framework - handle a POST request
body: <p>this is the route to handle the login POST request:</p>
  
  <pre><code>POST  /login/submit                 controllers.Users.loginSubmit(user : String, password : String)
  </code></pre>
  
  <p>this is the login.scala.html:  </p>
  
  <pre><code>&lt;form method="post" action="???"&gt;
    &lt;input type="text" name="username" /&gt;&lt;br/&gt;
    &lt;input type="password" name="password" /&gt;&lt;br/&gt;
  
    &lt;input type="submit" value="Login" /&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>I got two questions:  </p>
  
  <ol>
  <li>what should be the value of action?  is it "login/submit"?  </li>
  <li>how do you pass this form to be handled in the loginSubmit function?  </li>
  </ol>
  
  <p>thanks</p>