It's not a secret anymore!*
The moose likes Servlets and the fly likes making a download servlet to service download managers Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "making a download servlet to service download managers" Watch "making a download servlet to service download managers" New topic
Author

making a download servlet to service download managers

Doyle Matt
Ranch Hand

Joined: Jul 05, 2004
Posts: 76
Hi i have this code that sends a file to a requestor. the problem with this one is that it doesn't support download managers. any ideas on how to support download managers?



SCJP 1.4
ak pillai
author
Ranch Hand

Joined: Feb 11, 2006
Posts: 288
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.




java j2ee job interview questions with answers | Learn the core concepts and the key areas
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: making a download servlet to service download managers
 
Similar Threads
word doc servlet filename question
Socket closed exception while downloading heavy files
PDF Download Servlet Problem
How to implement file downloading functionality ?
Delete file when the file downloaded.