3 messages in com.mysql.lists.javaRe: Downloading file(s) from browser
FromSent OnAttachments
Mari...@amsinc.com12 Jan 2001 06:27 
Cris Perdue12 Jan 2001 09:13 
Mari...@amsinc.com15 Jan 2001 00:27 
Subject:Re: Downloading file(s) from browser
From:Mari...@amsinc.com (Mari@amsinc.com)
Date:01/15/2001 12:27:13 AM
List:com.mysql.lists.java

Hurrah!, It's working !!!

Cheers, Mariusz

|--------+-------------------------> | | Cris Perdue | | | <cris@volunteer| | | match.org> | | | | | | 12/01/2001 | | | 18:13 | | | | |--------+-------------------------> >----------------------------------------------------------------------------| | | | To: Mariusz Pliszka/AMS/AMSINC@AMSINC | | cc: ja@lists.mysql.com | | Subject: Re: Downloading file(s) from browser | >----------------------------------------------------------------------------|

Don't ya know that I heard it throught the grapevine:

Subject: Re: writing files through ServletOutputStream From: Date: Thu, 9 Mar 2000 18:53:55 -0500 (EST)

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.

Does this help?

-Cris