File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Servlets and the fly likes how content disposition works Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Servlets
Bookmark "how content disposition works" Watch "how content disposition works" New topic

how content disposition works

shriram iyer
Ranch Hand

Joined: Dec 10, 2003
Posts: 43

When i run the above servlet file abc.txt is getting saved,but without to download a file abc.txt along with its content.

Bear Bibeault
Author and ninkuma

Joined: Jan 10, 2002
Posts: 60810

Stream the contents to the response output stream.

[Asking smart questions] [Bear's FrontMan] [About Bear] [Books by Bear]
I agree. Here's the link:
subject: how content disposition works
Similar Threads
Content-Disposition: Download file name problem
Should the download code be modified specially for office2003
download link in jsp ?
How to Specify the dynamic name for setting a file for downloading?
making a download servlet to service download managers