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.