making a download servlet to service download managers
posted 10 years ago
Try setting the contentent-type and the content-disposition prior to acquiring a writer. First, set the Content-Type header to a nonstandard value such as application/x-download. It's very important that this header is something unrecognized by browsers because browsers often try to do something special when they recognize the content type.