Here is my code to download a file using jsp. Its working. But what i need is just to open the file. No need to show the options of saving. just to open. Please help me, what modifications I have to do here???
Even using
response.setHeader("Content-Disposition","inline:filename="+fileName);
it showing open/save dialogbox in firefox and its downloading in chrome browser..
Can anyone please help me what changes need to get open the file directly without open/save dialog box.please.
Check the browser settings; there's nothing the web app can do about that.
And do yourself a favor by taking Matthew's advice - using a JSP for this will lead to tears. JSPs are for emitting character data, not for processing data, not for file or DB I/O, and not for handling binary data.
Doody calls. I would really rather that it didn't. Comfort me wise and sterile tiny ad:
a bit of art, as a gift, the permaculture playing cards