title: how to get param in method post spring mvc?
body: <p>I'm using spring mvc. And I can't get param from url when method = post. But when I change method to GET, so I can get all param.</p>
  
  <p>This is my form:</p>
  
  <pre><code>&lt;form method="POST" action="http://localhost:8080/cms/customer/create_customer" id="frmRegister" name ="frmRegister" enctype="multipart/form-data"&gt;
      &lt;input class ="iptRegister" type="text" id="txtEmail" name="txtEmail" value="" /&gt;
      &lt;input class ="iptRegister" type="password" id="txtPassword" name="txtPassword" value="" /&gt;
      &lt;input class ="iptRegister" type="text" id="txtPhone" name="txtPhone" value="" /&gt;
  
      &lt;input type="button" id="btnRegister" name="btnRegister" value="Register" onclick="" style="cursor:pointer"/&gt;
  &lt;/form&gt;
  </code></pre>
  
  <p>This is my controller:</p>
  
  <pre><code>@RequestMapping(value= "/create_customer", method = RequestMethod.POST)
  @ResponseBody
  public String createCustomer(HttpServletRequest request, 
          @RequestParam(value="txtEmail", required=false) String email, 
          @RequestParam(value="txtPassword", required=false) String password, 
          @RequestParam(value="txtPhone", required=false) String phone){
  
      ResultDTO&lt;String&gt; rs = new ResultDTO&lt;String&gt;();
      rs.setStatus(IConfig.SHOW_RESULT_SUCCESS_ON_MAIN_SCREEN);
      try{
          Customer c = new Customer();
          c.setEmail(email);
          c.setPassword(password);
          c.setPhone(phone);
          customerService.insert(c);
          rs.setData("Insert success");
      }catch(Exception ex){
          log.error(ex);
          rs.setStatus(IConfig.SHOW_RESULT_ERROR_ON_MAIN_SCREEN);
          rs.setData("Insert failure");
      }
      return rs.toString();
  }
  </code></pre>
  
  <p>How can I resolved this?</p>