title: How to get POST parameter in JAX-RS method?
body: <p>I am developing RESTful services with Jersey and it works great with <code>GET</code> methods. But I can only get <code>null</code> parameters using the <code>POST</code> method. Here is the sample code from my project.</p>
  
  <h3>HTML</h3>
  
  <pre class="lang-xml prettyprint-override"><code>&lt;form action="rest/console/sendemail" method="post"&gt;
    &lt;input type="text" id="email" name="email"&gt;
    &lt;button type="submit"&gt;Send&lt;/button&gt;
  &lt;/form&gt; 
  </code></pre>
  
  <h3>Java</h3>
  
  <pre class="lang-java prettyprint-override"><code>@POST
  @Path("/sendemail")
  public Response sendEmail(@QueryParam("email") String email) {
      System.out.println(email);
      return  new Response();
  }
  </code></pre>
  
  <p>The email I get from the post is always null.
  Anyone has the idea?</p>
  
  <p>I changed QueryParam to FormParam, the parameter I get is still null.</p>