title: How to receive data sent by Ajax in a .jsp file
body: <p>I am using Ajax call in JQuery to send some data to a JSP file.  Here is the code:</p>
  
  <pre><code>$.post("myscript.jsp",
      { sg: data1, st: data2 },
      function(data){
         alert("Data Loaded: " + data);
      }
  );
  </code></pre>
  
  <p>My question is, how can I receive the data in myscript.jsp?
  I need the data to perform some calculations in jsp.</p>