ajax: sending data to the server

ajax: sending data to the server

I don't usu. send data to the server with ajax...  I remember from when I first was learning ajax (plain, no jQuery) that you always had to send the data in the form of a query string, which meant at end of url there always had to be a "?"... is this the case with ajax? b/c my data is not getting sent.. my code:
  1.         data = "namePicked=" + names[0];
  2.        
  3.      $.post( "info.jsp?", function( data ) {
  4.         $( ".outputDiv" ).append( data );
  5.         // window.location='info.jsp';
  6.      });

info.jsp

  1. <%
  2. String nameChosen = "";
  3. nameChosen = getParam("namePicked", request);
  4. %>
  5. <%  out.println(nameChosen);  %>

(I have a special fn to get params, that's why not using java conventional getParameter I use this everywhere.. it works fine... so that's not the issue....)

thank you....