title: jquery ajax post,data is not sending to server
body: <p>I am making an AJAX call to a Struts2 Action class via jQuery ajax.</p>
  
  <p>I am sending the json data to the server from my client. If I use "GET" in <code>$.ajax()</code>, the data is transferred to server. If I replace GET with "POST" in <code>$.ajax()</code>,the data is not transferred to server.</p>
  
  <p>My code,</p>
  
  <pre><code>$.ajax(
  {
    type: 'GET',
    url: 'login.action',
    contentType: "application/json; charset=utf-8",
    dataType: 'json',
    data:
    {
      jsonData: JSON.stringify(
      {
        number:"10",
        name:"ramesh"          
      })
  
    },
    success: function (data)
    {
       printStudentDetails(data);
    }
  });
  </code></pre>
  
  <p>In firebug, while using GET,the json data is visible as </p>
  
  <pre><code>jsonData    {"number":"10","name":"ramesh"}
  </code></pre>
  
  <p>While using POST,the json data is visible as like this,</p>
  
  <pre><code>jsonData=%7B%22number%22%3A34%2C%22name%22%3A34%2C%22
  </code></pre>
  
  <p>What is the solution to send the data to the server using POST.</p>