Re: Servlet Streaming file to client: Can't override file name

2005-03-14 Thread Jon Wingfield
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

Re: Servlet Streaming file to client: Can't override file name

2005-03-13 Thread Chris Hyzer
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

Re: Servlet Streaming file to client: Can't override file name

2005-03-13 Thread Mark Leone
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

Servlet Streaming file to client: Can't override file name

2005-03-12 Thread 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