Expand my Community achievements bar.

Submitting a PDF with HTTP Post

Avatar

Level 7

I am new to servlet programming.

However, I have managed to create a servlet to handle PDF submissions from an HTML form. The parameters used are

<input type="file" name="datafile" size="40">
<input type="submit" value="Send">

I am using the datafile as the parameter in the servlet for the PDF. I would like to create the same functionality where I can submit the entire PDF form the PDF.

What is the format to submit the file type parameter with datafile as the name ?

Aditya

6 Replies

Avatar

Level 6

Hi,

When you are submitting PDF in button you have to define Submit URL, smth lik http://myapplication:8080/SubmitServlet.

In your application you have to create Submit Servlet. You can take submitted PDF from request.getInputStream().

BR,

Paul Butenko

Avatar

Level 7

Thank you for replying.

I think I have already created the submit servlet that accepts the PDF from an HTML form. However, the parameter passed to is has a variable name "datafile" which i code in the HTML form.

I would like to know how can I provide that variable name to the servlet through the submit button in the PDF.


Aditya

Avatar

Level 7

I am using the request.getParameter() in my serlvet to get the information. This is the parameter I am looking for through the PDF submission. I hope this helps in calrifying my question.

Aditya

Avatar

Level 6

Hi,

As I know you can determine this parameter in PDF form? you can only submit whole PDF file to some link. This means you have o write one more servlet to handle submitting from pdf form.

Check this http://livedocs.adobe.com/livecycle/8.2/programLC/programmer/help/wwhelp/wwhimpl/common/html/wwhelp....

http://forums.adobe.com/message/1354202

BR

Avatar

Level 7

BR - I used the request.getInputStream to get the file details. You are correct, the file can only be submitted.

"As I know you can determine this parameter in PDF form?"

I still haven't figured out a way to determine the parameter in the PDF form.

Aditya

Avatar

Level 6

Sorry, made mistake in sentence. As I know you can't determine parameters in PDF form.

BR