This week's book giveaway is in the OO, Patterns, UML and Refactoring forum. We're giving away four copies of Refactoring for Software Design Smells: Managing Technical Debt and have Girish Suryanarayana, Ganesh Samarthyam & Tushar Sharma on-line! See this thread for details.
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
I’ve looked at a lot of different solutions, and in my humble opinion Aspose is the way to go. Here’s the link: http://aspose.com