• 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

servlets and pdf

 
Greenhorn
Posts: 16
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Ranch Hand
Posts: 321
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
can somebody please have a look at it?
thank you,
vamsi.
 
Ranch Hand
Posts: 88
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 214
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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.
 
Happiness is not a goal ... it's a by-product of a life well lived - Eleanor Roosevelt. Tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com
reply
    Bookmark Topic Watch Topic
  • New Topic