Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

how to submit PDF object to servlet

 
achayya matta
Ranch Hand
Posts: 111
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,

I am facing problem while getting PDF object in servlet.i am not able to see this object in the request.

Problem Description.
-----------------------
I have JSP page which renders a PDF file inside a DIV tag.

<object id="pdf" border="0" width="100%" height="100%" type="application/pdf" data="<c ut value="${fullURL}"/>" standby="Loading pdf..."/>

Now user can fill the PDF form and submit it to server.

It will be highly appreciated if somebody can tell me how to get this PDF OBJECT in servlet.
 
Ben Souther
Sheriff
Posts: 13411
Firefox Browser Redhat VI Editor
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
PDF objects can't be submitted to the server.
When you submit a form in a PDF it sends the data to the server the same way that an HTML form does; in a string of name/value pairs.
 
achayya matta
Ranch Hand
Posts: 111
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply sir.
I will try to do the same.
 
Vikrant Sahdev
Ranch Hand
Posts: 58
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
If this helps, try using Japser reports. They give you the PDF reports , once you specify the content type for pdf in your Struts action class.
You might have to spend some time learning Jasper reports API if you are a beginner, though its fairly straight forward. Try iReport , open source library.
 
Ulf Dittmer
Rancher
Pie
Posts: 42966
73
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Umm, what does JasperReport have to do with submitting a PDF? The PDF in question doesn't need to be generated - it already exists.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic