Had the same troubles with csv file: try this:

Andreas Mecky,
Wednesday, March 14, 2001, 1:14:45 PM, wrote:

response.setContentType(application/msexcel);
response.setHeader("Content-Disposition","inline; filename=filename");

this works for me in IE and NS.


gerd



Reto Badertscher,
Monday, March 26, 2001, 9:44:30 AM, you wrote:

> When generating and sending a rtf file from a servlet, the browser ask for
> - display from current location
> - saving the document

> When "display from current location" is chosen by the user, the servlet
> receives a second request (that means the file will be generated a second
> time), when "saving the document" no additional request is sent to the
> servlet.
> The following parameters are set for sending the rtf document:
>   aRes.setContentType("application/rtf");
>   aRes.setHeader("Content-disposition","attachement;filename =
> myDocument.doc");

> I appreciate any hint/idea to avoid the additional request.

> Thanks in advance

> Reto Badertscher



Gerd


Reply via email to