This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Hi, I have taken the following code from HFSJ that is used for downloading jar file.When the above servlet is called,the file is downloaded with name InputOutputStream. Is it possible that when the download starts, it is done with extension jar(without myself explicitly specify it during the download).
Put the following line immediately after setContentType():
This line will make the browser aware of the name to use for downloading the stram. Therefore the browser will display the download dialog box with the given name 'Archive.jar' by default. Hope this helps. [ June 17, 2005: Message edited by: Anand Wadhwani ]
SCWCD 1.4<br />---------------------<br />Ability is what you're capable of. <br />Motivation determines what you do. <br />Attitude determines how well you do it.<br />---------------------