With some versions of IE5, it is *also* necessary to append the file name as a dummy parameter at the end of the url:
http://localhost/servlet/turbine/template/RTFGenerationScreen/order/01002/ ...becomes... http://localhost/servlet/turbine/template/RTFGenerationScreen/order/01002/re port.rtf. This is due to IE's preference of file extensions over mime-type to determine the type of file it is dealing with. As far as I can tell, this behavior has been fixed with IE6. Chris > -----Original Message----- > From: Kevin Rutherford [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 12, 2003 9:51 AM > To: 'Turbine Users List' > Subject: RE: Returning a file through a screen with a specific name... > > > Use a "Content-Disposition" header: > > data.getResponse().setHeader("Content-Disposition", "inline; > filename=" + > fileName); > > Kevin > > > -----Original Message----- > From: Phee, Martin J (Jump Tech) [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 12, 2003 8:45 AM > To: 'Turbine Users List' > Subject: RE: Returning a file through a screen with a specific name... > > > I'd be interested to know also. > > -----Original Message----- > From: Rodrigo Reyes [mailto:[EMAIL PROTECTED] > Sent: Wednesday, March 12, 2003 9:36 AM > To: [EMAIL PROTECTED] > Subject: Returning a file through a screen with a specific name... > > > Hi > Does anyone know how to create a screen which sends a file with a > specific name? Let's say I have a RTFGenerationScreen, which will return a > RTF which I would like to be named "report.rtf". I think it may > be something > around the headers of the response, but I am not sure. Any idea? Thanx > > Rodrigo > > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
