How to force a file download to save
"Paku, Neil" <[email protected]>
| Newsgroups | gmane.comp.java.sun.servlet |
|---|---|
| Message-ID | <87EF6E23E5FBFC4290BF67724BF4A572639513@DOIT-EX101.exec.ds.state.ct.us> |
Group,
can someone tell me what the options are for forcing a file
download to pop up a save dialogue.
What I want to do is force the save dialogue to open for any of the
files available from a particular site for download, including our xml,
txt and csv files.
As far as I know, I can either:
1. Change my server mimetypes so that it defaults to sending my file
with a content type of e.g. "bad/type"
2. Manually alter the response object to set the content type to e.g.
"bad/type".
Are there any other ways that I can do this?
Cheers,
Neil.
___________________________________________________________________________
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