W3C home > Mailing lists > Public > www-jigsaw@w3.org > May to June 2000

Re: download servlet

From: j Brax <jBrax@csi.com>
Date: Tue, 23 May 2000 15:12:21 -0400 (EDT)
To: <www-jigsaw@w3.org>
Message-ID: <000001bfc4ea$41a09ea0$6c6be8c3@jb>
I retrieved some code from JavaWorld, so here is another answer:
				res.addHeader("Content-disposition","attachement; filename="+fic1);

String variable fic1 contains the file name, if you are using servlet 2.1,
you should be using instead
function res.setHeader("Content-disposition","attachement; filename="+fic1);

As for ContentType, Roland Mainz might be right.

Hope this help

j Brax
Received on Wednesday, 24 May 2000 19:02:21 UTC

This archive was generated by hypermail 2.3.1 : Tuesday, 6 January 2015 21:25:36 UTC