New Forum | Previous | Next | (P-PDF) Developers
Topic: JSP problem after PDF Form Submit
Conf: (P-PDF) Developers, Msg: 71247
Date: 8/27/2002 12:51 AM
Our project team is using a PDF with Acrobat Form fields behind it to submit form data to a java servlet, where it is parsed and written to a legacy system.
Our problem: when we return a jsp confirmation page back to the user, we are getting intermittent responses - sometimes the user will see the page, sometimes not. Also of note - the URL address location in the browser is being changed to "C://TEMP/xxxxxx.html", instead of showing "http://myserver/myapp/confirmPage.jsp". In effect, it doesn't retain the server location from which the form data was submitted - instead, after the jsp on that server is rendered into html, it is being written to a temp location on the local hard drive as an .html page, then displayed from there.
In my debug testing, I have bypassed my application code, submitting into the servlet and returning the jsp right back to the user. It works properly when submitted from an HTML page, but goes to the C://TEMP... route when submitted from the PDF. Therefore, I can conclude that the bug is not in our java code and is not in the jsp code.
I suspect the problem may be caused by some differences in the headers in the HttpRequest object coming from the PDF. In comparing the Request headers from the PDF submit and those from an HTML page submit:
From the PDF:
content-type = application/x-www-form-urlencoded
user-agent = Mozilla/4.0 (compatible; Adobe Acrobat Control Version 5.00 for ActiveX)
From an HTML submit:
content-type = text/html
user-agent = Mozilla/4.0 (compatible; MSIE 5.5; Windows NT 4.0)
I have tried explicitly setting the headers to match those coming in from an HTML submit but this doesn't seem to make a difference.