----------------------------------------------------------------
BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
WHEN YOU POST, include all relevant version numbers, log files,
and configuration files. Don't make us guess your problem!!!
----------------------------------------------------------------
Strange...I'm running Netscape 4.7 on Linux, and it works fine. I'll have
to check it out on a Windows machine.
On Fri, 10 Mar 2000, Ryan Vanderwerf wrote:
> ----------------------------------------------------------------
> BEFORE YOU POST, search the faq at <http://java.apache.org/faq/>
> WHEN YOU POST, include all relevant version numbers, log files,
> and configuration files. Don't make us guess your problem!!!
> ----------------------------------------------------------------
>
> Hmm looks like this trick only works on IE? Netscape 4.7 seems to ignore
> it..
> Also don't put the : in the first parameter, jserv will automatically put it
> in like this:
>
> res.setHeader("Content-Disposition","attachment; filename=resume.doc");
> -----Original Message-----
>
> In case anybody's interested, I just found the answer to my problem ;)
>
> You just need to set the HTTP Header "Content-Disposition:" to include the
> suggested filename to the client. It goes something like this:
>
> res.setContentType("application/msword");
> res.setHeader("Content-Disposition:","attachment; filename=resume.doc");
> res.setContentLength(data.length);
> out.write(data);
> out.flush();
>
> Walla! The Save As dialog comes up with "resume.doc" already filled in.
>
> -Rob
> -----------------
> Ryan
>
>
>
> --
> --------------------------------------------------------------
> Please read the FAQ! <http://java.apache.org/faq/>
> To subscribe: [EMAIL PROTECTED]
> To unsubscribe: [EMAIL PROTECTED]
> Archives and Other: <http://java.apache.org/main/mail.html>
> Problems?: [EMAIL PROTECTED]
>
--
--------------------------------------------------------------
Please read the FAQ! <http://java.apache.org/faq/>
To subscribe: [EMAIL PROTECTED]
To unsubscribe: [EMAIL PROTECTED]
Archives and Other: <http://java.apache.org/main/mail.html>
Problems?: [EMAIL PROTECTED]