title: Passing form data from PDF to a servlet in iText
body: <p>I have a PDF that contains a form that should be filled by users that transfers the submitted data to a database. For example, it contains the name, age, and comments fields. The user fills out this form and hits the "POST" button in the PDF.</p>
  
  <p>The code for the POST button is given:</p>
  
  <pre><code>PushbuttonField button1 = new PushbuttonField(
        stamper.getWriter(), new Rectangle(90, 660, 140, 690), "post");
  button1.setText("PDFPOST");
  button1.setBackgroundColor(new GrayColor(0.7f));
  button1.setVisibility(PushbuttonField.VISIBLE_BUT_DOES_NOT_PRINT);
  PdfFormField submit1 = button1.getField();
  submit1.setAction(PdfAction.createSubmitForm(
        "http://192.168.1.136:8085/LogFileExampleProject/PdfService", null,
         PdfAction.SUBMIT_PDF));
  // add the button
  stamper.addAnnotation(submit1, 1);
  </code></pre>
  
  <p>However, when the POST button is pushed after the user has filled out the form in the PDF, it makes a connection with the URI specified in <code>createSubmitForm</code>, but doesn't pass any of the <code>TextField</code> parameters. How can I go about doing this?</p>