File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Re: downloading from a servlet
Joined: Sep 28, 2005
Jan 27, 2006 07:24:00
i included the
response.setHeader("Content-Disposition", "attachment; filename=file.txt"));
the only thing that its not downloading my attached file, rather, its set the filename to null, and its downloading the dynamic html generated by my servlet into a file.
So am i supposed to actually code for the download itself?
"Human beings can alter their lives by altering their state of mind" William James
Joined: Dec 11, 2004
Jan 27, 2006 07:39:00
Please keep your question in one thread.
It gets confusing if it's spread out in multiple threads.
The original is here:
How to ask a question...
Simple Servlet Examples
I agree. Here's the link:
subject: Re: downloading from a servlet
error locating file in servlet
JXL with weblogic
download link in jsp ?
File Downloads using servlets
Outputting to .txt
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015