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
Win a copy of
Java SE 8 for the Really Impatient
this week in the
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
downloading from a servlet
error locating file in servlet
download link in jsp ?
JXL with weblogic
File Downloads using servlets
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2014