Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
JavaRanch.com/granny.jsp
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

servlets and pdf

 
vamsi bezawada
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,
bye,
vamsi.
 
Rishi Singh
Ranch Hand
Posts: 321
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can u post the code....have u tried using requestDispatcher.forward()
 
vamsi bezawada
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
Thanks for the reply. But I use javascript method submitForm(/xxxxServlet); in PDF to forward from pdf to servlet.
Bye,
vamsi.
 
vamsi bezawada
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
can somebody please have a look at it?
thank you,
vamsi.
 
Thomas Hubschman
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.
Thanks,
Thomas
 
Garann Means
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Vamsi,
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.
g.
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic