These forums are now Read Only. If you have an Acrobat question, ask questions and get help from one of our experts.

problems sending a form with HTTP button

Barthuin
Registered: Apr 24 2008
Posts: 45

Hi all,

I'm trying to send a PDf form to a servlet in POST method and then, work with its information. my form has two fields called "nombre" and "apellidos". When I click on the submit button, my servlet received the pdf information but its wrong. This is like this

nombre="danielapellido=rico"

instead of

nombre="daniel"&apellido="rico"

Any idea why do I received information in this way? Is this way right or it's better use another way instead HTTP Button?

Thanks in advance

thomp
Expert
Registered: Feb 15 2006
Posts: 4411
Is this an AcroVorm or a LiveCycle form? LiveCycle does it's own thing with the query string. If you are using live cycle then the best thing to do is to submit as XML and parse the data out of the HTTP request body in your applet. You can gain more control over the HTTP request by using the JavaScript submit function. See this article:

http://www.acrobatusers.com/tech_corners/javascript_corner/tips/2006/submitting_data/

For a liveCycle form, call the submit using this syntax:

event.target.submitForm(...);

Thom Parker
The source for PDF Scripting Info
www.pdfscripting.com
Very Important - How to Debug Your Script