Hello, Twice when i've tried to run my servlet which is hosted i get prompted to save a file. Once i make the selection then nothing happens. My response type is set as text/html is that maybe the cause? If anyone has had this happen to them and could halp it would be greatly appreciated.
Brian, That is definitely a bit odd. A couple possibilities: 1. Are you setting a Content-disposition header? If so, what is it? 2. IE will ignore the reported content type if the URL (minus the query string) ends with an extension that it thinks it knows. What does the request URI look like?
ya can force it using: response.reset(); response.setContentType("application/vnd.ms-excel"); response.setHeader ("Content-Disposition", "attachment;filename=\"result.xls\""); if the file was written on the response output stream, the secret is to use the "attachment;filename..." part