Re: Send a file back for saving and give it a name??

2000-12-05 Thread Mukka, Srikanth
Hi All, I have a image in a frame, I want to save the file by dynamically assigning it a name.Any ideas? or help is appreciated. Bye Srikanth -Original Message- From: Joakim Olsson [mailto:[EMAIL PROTECTED]] Sent: Thursday, November 30, 2000 2:39 AM To: [EMAIL PROTECTED] Subject: Re:

Re: Send a file back for saving and give it a name??

2000-11-30 Thread Joakim Olsson
Hi, you can use response.setHeader("Content-Disposition", "attachment; filename=\"MyFile.txt\"") Regards Joakim -Original Message- From: A mailing list about Java Server Pages specification and reference [mailto:[EMAIL PROTECTED]]On Behalf Of Duffey, Kevin Sent: den 30 november

Send a file back for saving and give it a name??

2000-11-29 Thread Duffey, Kevin
Hi there, We have on our site the ability for users to select a document id and it will return a file for them to save (and later reuse). The document is created dynamically in memory on the server, and we set the contentType to application which DOES pop up the "Save As" dialog box on the

Re: Send a file back for saving and give it a name??

2000-11-29 Thread Lance Lavandowska
If memory serves (its been awhile since I've seen this one come up) make sure that the desired filename is the very last thing in the url. The browser will assume this is the filename to use for saving the file. example: brainopolis.com/download.do/dynamicFile.txt The save-as window should