Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@www.apache.org Received: (qmail 92253 invoked from network); 4 Nov 2003 11:51:50 -0000 Received: from daedalus.apache.org (HELO mail.apache.org) (208.185.179.12) by minotaur-2.apache.org with SMTP; 4 Nov 2003 11:51:50 -0000 Received: (qmail 32311 invoked by uid 500); 4 Nov 2003 11:51:32 -0000 Delivered-To: apmail-jakarta-tomcat-user-archive@jakarta.apache.org Received: (qmail 31988 invoked by uid 500); 4 Nov 2003 11:51:30 -0000 Mailing-List: contact tomcat-user-help@jakarta.apache.org; run by ezmlm Precedence: bulk List-Unsubscribe: List-Subscribe: List-Help: List-Post: List-Id: "Tomcat Users List" Reply-To: "Tomcat Users List" Delivered-To: mailing list tomcat-user@jakarta.apache.org Received: (qmail 31975 invoked from network); 4 Nov 2003 11:51:30 -0000 Received: from unknown (HELO deckertelecom.net) (81.17.65.172) by daedalus.apache.org with SMTP; 4 Nov 2003 11:51:30 -0000 Received: (qmail 10089 invoked from network); 4 Nov 2003 11:46:52 -0000 Received: from unknown (HELO deckertelecom.net) (192.168.1.5) by 81.17.65.172 with SMTP; 4 Nov 2003 11:46:52 -0000 Message-ID: <3FA7912F.ECF2237C@deckertelecom.net> Date: Tue, 04 Nov 2003 11:44:47 +0000 From: Duncan X-Mailer: Mozilla 4.72 [en] (Windows NT 5.0; I) X-Accept-Language: en MIME-Version: 1.0 To: Tomcat Users List Subject: Re: Content Type References: <9C5166762F311146951505C6790A9CF8013DF5E7@US-VS1.corp.mpi.com> Content-Type: text/plain; charset=us-ascii Content-Transfer-Encoding: 7bit X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: minotaur-2.apache.org 1.6.2 0/1000/N Cheers guys - Duncan :-) "Shapira, Yoav" wrote: > Howdy, > Add the content-disposition:attachment header. > > Yoav Shapira > Millennium ChemInformatics > > >-----Original Message----- > >From: Duncan [mailto:dsmith@deckertelecom.net] > >Sent: Monday, November 03, 2003 9:48 AM > >To: tomcat-user@jakarta.apache.org > >Subject: Content Type > > > >I have a file running as a jsp but with a differant extension (.pms). > >When a user requests this file in IE/Netscape. I want it to download as > >a file rather than being opened as text by the browser. > > > >I have tried adding: > >response.setContentType("application/octet-stream"); > >but this only seems to work some of the time. > > > >Anyone any ideas? > > > >Duncan Smith > >Decker Telecom Ltd > > > > > >--------------------------------------------------------------------- > >To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > >For additional commands, e-mail: tomcat-user-help@jakarta.apache.org > > This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you. > > --------------------------------------------------------------------- > To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org > For additional commands, e-mail: tomcat-user-help@jakarta.apache.org --------------------------------------------------------------------- To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org For additional commands, e-mail: tomcat-user-help@jakarta.apache.org