• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

how to submit PDF object to servlet

 
Ranch Hand
Posts: 111
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Sheriff
Posts: 13411
Firefox Browser VI Editor Redhat
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thanks for your reply sir.
I will try to do the same.
 
Ranch Hand
Posts: 58
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Rancher
Posts: 43081
77
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
With a little knowledge, a cast iron skillet is non-stick and lasts a lifetime.
reply
    Bookmark Topic Watch Topic
  • New Topic