RequestDispatcher dispatcher = getServletContext().getRequestDispatcher("/MyServletPDF?username=TEST");
While debugging everything is going through... even it passes through the last line. But the pdf is not launching... showing only a blank screen in its status bar as "Connecting"... Earlier it was launching.. but suddenly this issue is raising up. Is there any IE settings need to be checked? Please help me. I'm totally struck up.
Neeba Rebbaca wrote:I don't think there is problem in the code, as it is working in other client machines. Its not working only in a particular m/c.
That's because, as has been said, you have no control what happens to files if you stream them to a client from a servlet. The client machine might not have a PDF viewer application at all or the browser might have been setup so as not to launch other applications. You might even observe different behavior on different browsers on the same computer. The best you can do from the server side is set the right headers. What the client will do with those headers is anyone's guess.
he client machine might not have a PDF viewer application at all or the browser might have been setup so as not to launch other applications.
Installed adobe pdf and other applications also launching.
The best you can do from the server side is set the right headers
What is the server side headers to be set?