The Artima Developer Community
Sponsored Link

Legacy Java Answers Forum
September 2000



This page contains an archived post to the Java Answers Forum made prior to February 25, 2002. If you wish to participate in discussions, please visit the new Artima Forums.


Anyone get the Downloading from Servlet working?

Posted by Rose W. on August 08, 2001 at 6:25 PM

I started out the sample code provided by some kind person in this "trail" and have run into the same issues. I have set the filename like so:
res.setHeader("Content-Disposition","attachment; filename=\"" + "test.txt" + "\";");

and have tried various params options, but from the download dialog box I get either "nullnull" or "nulltest" or fileDownload.
If any one of folks got this working , would you send your source to me and the params you are using at the url?

Thanks in advance,
Rose W.


Sponsored Links

Copyright © 1996-2009 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use - Advertise with Us