to client: Can't override
file name
123049 by: Mark Leone
Its an HTTP header you are looking for, try this:
response.setHeader(Content-Disposition, attachment;
filename= + theFile.getName());
Chris
-
To unsubscribe, e-mail: [EMAIL
Servlet Streaming file to client: Can't override
file name
123049 by: Mark Leone
Its an HTTP header you are looking for, try this:
response.setHeader(Content-Disposition, attachment;
filename= + theFile.getName());
Chris
Thanks. That's exactly what I needed, and it did the trick. Firefox browser just
grabs the first non-whitespace part of the name, but in IE the entire name shows
up. Thanks again.
-Mark
Chris Hyzer wrote:
Servlet Streaming file to client: Can't override
file name
123049 by: Mark Leone
I wrote a simple servlet that streams a file to the requesting client.
Everything works fine except I can't figure out how to override the
filename that Tomcat provides by default to the client for the incoming
file. The filename presened to the client is the name of the web app.
The