File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes servlets and pdf Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Servlets
Bookmark "servlets and pdf" Watch "servlets and pdf" New topic

servlets and pdf

vamsi bezawada

Joined: Dec 28, 2000
Posts: 16
Hi everybody,
I have a pdf and my sequence works like below..
PDF---> servlet ---->pdf----->servlet--->jsp
This works very fine with netscape, but when i try to do the same in IE it only works until the second servlet..
PDF---> servlet ---->pdf
after this it does not call the servlet like as it did in netscape. There is even no error message recorded or so.
i want to know what part might have gone wrong?
I hope somebody could help me in this regard.
thank you,
Rishi Singh
Ranch Hand

Joined: Dec 09, 2000
Posts: 321
can u post the code....have u tried using requestDispatcher.forward()
vamsi bezawada

Joined: Dec 28, 2000
Posts: 16
Thanks for the reply. But I use javascript method submitForm(/xxxxServlet); in PDF to forward from pdf to servlet.
vamsi bezawada

Joined: Dec 28, 2000
Posts: 16
can somebody please have a look at it?
thank you,
Thomas Hubschman
Ranch Hand

Joined: Sep 25, 2002
Posts: 88
I am still a little confused.
You have a javaScript function embedded in your .pdf document which should fire an httpRequest off to servlet? Then the servlet opens a binary stream and serves an new .pdf and then the process starts all over again?
javaScript in .pdfs are beyond my scope, but if I misunderstand you please post again an I will try to help.

SCJP '02, SCWCD '02, SCJD '08, SCSNB '09, SCEA '10
Garann Means
Ranch Hand

Joined: Jan 28, 2002
Posts: 214
I'm not sure if this is relevant to your question (maybe not, if you get no error), but I had a similar situation where I tried to do:
jsp -> servlet -> jsp -> servlet -> jsp
Like you, I would get to:
jsp -> servlet -> jsp
After that, I couldn't move on. I discovered that this was because the current location was the URL of the servlet that had called the JSP. So the URL I was using as an action for my form was broken because it was relative to the location of the JSP, not the servlet that was the location when the form was submitted.
I agree. Here's the link:
subject: servlets and pdf
It's not a secret anymore!