wood burning stoves 2.0*
The moose likes Web Component Certification (SCWCD/OCPJWCD) and the fly likes File download servlet 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 » Certification » Web Component Certification (SCWCD/OCPJWCD)
Bookmark "File download servlet" Watch "File download servlet" New topic

File download servlet

Rashmi Tambe
Ranch Hand

Joined: Aug 07, 2001
Posts: 418
I have written a servlet that downloads a file. The file is downloaded properly , however, wherever i click on a URL, the dialog box that pops up for download shows message as ,
DownloadServlet from
where DownloadServlet is the name of the servlet that gets called and then my ip address. how can i display string like
demo.txt from www.mywebsite.com[/B]
do i have to add some special headers ???or what ?
When i download the file , by default the filename is my servlet name. i need to rename it.
How can i download a file using its original name?
I agree. Here's the link: http://aspose.com/file-tools
subject: File download servlet
Similar Threads
Invoking a Download servlet from a JSR 168 portlet page
need urgent help on file download servlet problem in IE
File Uploads - how to make uploaded file available for download
repost with more detail on problem of download servlet in Internet Explore
file download servlet