title: User Registration Form in HTML - Required String parameter 'user_id' is not present
body: <p>I have an html page (format - <code>FTL</code>) in which I am trying to send data to a controller method. I am only trying to print the items that the user typed, nothing fancy for the beginning. I get the error -  <code>Required String parameter 'user_id' is not present</code></p>
  
  <p>I work with <code>spring mvc</code> and <code>freemarker</code>.</p>
  
  <p>This is the <code>signup.ftl</code> file -</p>
  
  <pre><code>    &lt;form method="POST", action="GET"&gt;
    &lt;div class="container"&gt;
      &lt;h1&gt;Register&lt;/h1&gt;
      &lt;p&gt;Please fill in this form to create an account.&lt;/p&gt;
      &lt;hr&gt;
  
      &lt;label for="email" id="email"&gt;&lt;b&gt;Email&lt;/b&gt;&lt;/label&gt;
      &lt;input type="text" placeholder="Enter Email" name="email" required&gt;
  
      &lt;label for="password" id="password"&gt;&lt;b&gt;Password&lt;/b&gt;&lt;/label&gt;
      &lt;input type="password" placeholder="Enter Password" name="password" required&gt;
  
      &lt;label for="user_id" id="user_id"&gt;&lt;b&gt;User ID&lt;/b&gt;&lt;/label&gt;
      &lt;input type="text" placeholder="user_id" name="user_id" required&gt;
      &lt;hr&gt;
      &lt;p&gt;By creating an account you agree to our &lt;a href="#"&gt;Terms &amp; Privacy&lt;/a&gt;.&lt;/p&gt;
  
      &lt;button type="submit" class="registerbtn"&gt;Register&lt;/button&gt;
    &lt;/div&gt;
  
    &lt;div class="container signin"&gt;
      &lt;p&gt;Already have an account? &lt;a href="#"&gt;Sign in&lt;/a&gt;.&lt;/p&gt;
    &lt;/div&gt;
  &lt;/form&gt;
  
  &lt;/body&gt;
  &lt;/html&gt;
  </code></pre>
  
  <p>This is the controller - </p>
  
  <pre><code>@RequestMapping(value = "/signup", method = RequestMethod.GET)    
  public String signup(@RequestParam("user_id")String user_id, @RequestParam("password")String password, @RequestParam("email")String email, Model model) {
      System.out.println("coming in controller" + user_id + " " + password);
      return "signup";
  }
  </code></pre>