• Post Reply Bookmark Topic Watch Topic
  • New Topic

Passing data from PDF form (made in acrobat writer) to a JSP

 
Rekha Pande
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,

I have created a PDF form using the acrobat writer. In the acrobat writer there is an option to insert a button, which when clicked can submit data.

When i try to submit the page to a jsp it gives me a "general error"..

What my question is -
Is it possible to transfer the pdf data from the PDF Form (that i created using acrobat writer) to a JSP Page. Where i can capture the selected values and then put it in a database.

If it is possible, then please help me out on this one.!!!

Thanxs a lot in advance
 
Rekha Pande
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi...

Well the general Error is gone know...
If some one has used Adobe Acrobat 7.0 for PDF Form creation and connected it to a JSP PLEASE help me out on the below:

I'm using the 7.0 version of Adobe Acrobat for PDF form creation.
I have created the HTTP Submit button, and i have added the URL to this HTTP Button which on click would submit data to JSP File.

In the PDF File i have a textfield 'fname'
and when i do a request.getParameter('fname') in my JSP ,
i get 'null' value.

Why is it so. Please tell me where i'm wrong.???

Thanxs in advance
 
Bear Bibeault
Author and ninkuma
Marshal
Posts: 65524
105
IntelliJ IDE Java jQuery Mac Mac OS X
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I do not believe that there are many people here with PDF form experience.

However, if no parameters are being detected by the request, one of the prime suspects would be the form encoding type being sent. If the form encoding is not "x-www-form-urlencoded" (the default for HTML forms), the HttpServletRequest instance will not parse the parameters, and getParameter() will not work.

So first thing I'd do is to find out what form encoding the PDF form is using. ServletRequest.getContentType() may help you in this regard.
 
Rekha Pande
Ranch Hand
Posts: 145
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I tried the request.getContentType() and it is x-www-form-urlencoded... but still i'm not receiving the text feild values...!!!
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!