IE doesn't respect the content-type header. It's ironic, considering http://xmlhack.com/read.php?item=1436.
Anyway, IE appears to use file extensions and sniffing of the actual content to determine a content type. For example, there's now way I know of to send an IE browser a GIF without having IE display the GIF. You could be in similar territory with Excel files. I talk about this on page 109 of the book actually (http://www.servlets.com/jservlet2). -jh- "Godbey, David" wrote: > > Problem: > Return an Excel spreadsheet from a server to a user's web browser, IE. I do > not want to allow the spreadsheet opening in the browser window, rather I > want to force the user to have to download the file to their local disk. The > environment is a Lan with trusting relationships between all parties. > > Using Jason's ServletUtil class, I'm easily sending the file, but it insists > on opening in the browser when I set content type to > application/vnd.ms-excel or even the more generic application/octet-stream. > > Is my problem easily solved? How? > Thanks, > Dave > > ___________________________________________________________________________ > To unsubscribe, send email to [EMAIL PROTECTED] and include in the body > of the message "signoff SERVLET-INTEREST". > > Archives: http://archives.java.sun.com/archives/servlet-interest.html > Resources: http://java.sun.com/products/servlet/external-resources.html > LISTSERV Help: http://www.lsoft.com/manuals/user/user.html ___________________________________________________________________________ To unsubscribe, send email to [EMAIL PROTECTED] and include in the body of the message "signoff SERVLET-INTEREST". Archives: http://archives.java.sun.com/archives/servlet-interest.html Resources: http://java.sun.com/products/servlet/external-resources.html LISTSERV Help: http://www.lsoft.com/manuals/user/user.html
