title: Ajax POST data in Request Param
body: <p>I am making a POST request as below :</p>
  
  <pre><code> $.ajax({
       url :"/clientCredentials.json",
       type: "POST",
       data: {
          "clientEmail": email,
          "clientName":clientName,
          "orgName":orgName,
          "logoURL":logoURL,
          "redirectURI":redirectUri
       },
       success: function(response){
          alert("sucess");
  
       },
       error:function(response){
           alert("something went wrong");
       }
   });
  </code></pre>
  
  <p>On the server,  I am using @RequestParams to get this data.</p>
  
  <pre><code>@RequestParam String clientEmail, @RequestParam String clientName, @RequestParam String orgName, @RequestParam String logoURL, @RequestParam String redirectURI
  </code></pre>
  
  <p>I am getting below from from server:</p>
  
  <pre><code>{"code":"400","errorMessage":"Required String parameter 'clientEmail' is not present"}
  </code></pre>
  
  <p>If I use @RequestBody instead of @RequestParam to accept this data its working fine.</p>
  
  <p>My question is How can I get this data in Request Parameters? What am I doing wrong?
  I have tried Jquery($.get(), $.post()) also. nothing working.</p>
  
  <p>Thanks for any help.</p>