Ok,
it now work fine. I just make a little modification to the code with :
response.setHeader(Content-Disposition,inline; filename=+archive);
If i put attachment and not inline i can't manage to have the native
contents embemded in my page for data such as images.
Thanks everybody for the help.
You are looking at the wrong spec :}
It part of the mime standard:
http://www.nacs.uci.edu/indiv/ehood/MIME/rfc2183.txt
You need to set a header Content-Disposition
with the value of filename=somefile.ext;
-Original Message-
From: Cédric Viaud [mailto:[EMAIL PROTECTED]]
Sent:
Cédric,
You could write something like this, as we have done.
/some-path/getbyidservice/93847572934/foo-filename.jpg
We have done this in Perl, and will be attacking this in servlets 1st week
February.
This allows the browser to cache (if allowed by headers) and to have the
yea, i agree but not all [dumb?] browsers respect it.
-jason pyeron
On Thu, 9 Jan 2003, Ralph Einfeldt wrote:
You are looking at the wrong spec :}
It part of the mime standard:
http://www.nacs.uci.edu/indiv/ehood/MIME/rfc2183.txt
You need to set a header Content-Disposition
with the value of
On Thu, 9 Jan 2003, Cédric Viaud wrote:
Date: Thu, 9 Jan 2003 17:24:24 +0100
From: Cédric Viaud [EMAIL PROTECTED]
Reply-To: Tomcat Users List [EMAIL PROTECTED]
To: Tomcat users [EMAIL PROTECTED]
Subject: How to specify a name for a content beeing served by s servlet
Hi,
i would like to
I found this resource:
http://ppewww.ph.gla.ac.uk/~flavell/www/content-type.html
I've seen people say they use the Content-disposition header to get around
this issue but I haven't needed to do this yet...
Example:
Content-disposition: attachment; filename=file2.gif
HTH,
Jon
Quoting Cédric
Sorry, Here's the code line I used:
response.setHeader(Content-Disposition,attachment; filename=+archive);
Dodd
- Original Message -
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL PROTECTED]
Sent: Thursday, January 09, 2003 11:19 AM
Subject: Re: How to specify a name for a
Yes,
This is exactly what I did to send .csv files to the client with the correct
name of the file rather than the called servlet as the default filename.
Worked like a charm on both IE and Netscape.
Dodd
- Original Message -
From: [EMAIL PROTECTED]
To: Tomcat Users List [EMAIL