Originally posted by Eric Pascarello:
Nope,
What you should do is go to the trusty old iframe and set the src to the dynamic pdf and whamo, it shows up.
Eric
Originally posted by Eric Pascarello:
Can't you just put a loading message on the screen when the user clicks on the link for the pdf and set the source of an iframe?
I personally would have a link, tell them to right click and save and not deal with this. But knowing people, they do not want them to save it.
Eric
Originally posted by Gregg Bolinger:
Link is not an option.
Originally posted by Bear Bibeault:
Why not? If the link invokes a servlet that sets the content-disposition response header correctly, the streamed PDF can appear in the browser. Why force an Ajax solution? Or is it that whoever is calling the shots heard that Ajax is "the bomb" and insists on using it whether it's appropriate or not?
Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]
Originally posted by Gregg Bolinger:
If I do the iframe, I am in the same situation as if I just loaded it in the browser without the iframe.
Originally posted by Gregg Bolinger:
Plus, the problem is not so much how long the document takes to stream to the browser, but how long it takes for the document to actually be created by the back-end process. That happens prior to the streaming.
Author of Test Driven (2007) and Effective Unit Testing (2013) [Blog] [HowToAskQuestionsOnJavaRanch]