title: Newbie: In Jersey framework, how to get HTML form object data in my case?
body: <p>When client side submit a <strong>HTML form</strong>, it will send a form object to server, like:</p>
  
  <pre><code>params={username: USER_INPUT_USERNAME,
         passworkd: USER_INPUT_PASSWORD}
  </code></pre>
  
  <p>Then, client ajax send the <strong>params</strong> object to my <strong>Jersey</strong> server.</p>
  
  <p>On the server side, how can I get and parse this HTML form object data <code>params</code>:</p>
  
  <pre><code>@GET
  @Produces({MediaType.APPLICATION_JSON})
  public FormResult getFormResult(@QueryParam("params") Object params) {
                   //How can I define the type of the "params" I received?
                   //Do I need to create a Java Bean which represent the HTML form, 
                   //and use the bean as the type of paprams? or any other way?
  }
  </code></pre>
  
  <p>(In above code, the return type <code>FormResult</code> is an POJO bean which describe the result to response to client)</p>
  
  <p>When I receive the <code>params</code> HTML form object data, how can I define the <strong>type</strong> of the <code>params</code> ?(above I defined it with type "<code>Object</code>", which is wrong).</p>
  
  <p>Do I must define a <strong>POJO bean</strong> to represent the HTML form and use that bean to describe the type of the <code>params</code>?? or any other way in Jersey?</p>
  
  <p>(If create POJO bean for the HTML form, If there are <strong>check boxes</strong> on the <strong>HTML form</strong>, the <code>params</code> will be an dynamic object, only checked field will be added to the params object, which is also a problem)</p>
  
  <p>Anybody can help?</p>