Return-Path: Delivered-To: apmail-jakarta-tomcat-user-archive@apache.org Received: (qmail 38230 invoked from network); 21 Jun 2002 11:53:37 -0000 Received: from unknown (HELO nagoya.betaversion.org) (192.18.49.131) by daedalus.apache.org with SMTP; 21 Jun 2002 11:53:37 -0000 Received: (qmail 22849 invoked by uid 97); 21 Jun 2002 11:53:21 -0000 Delivered-To: qmlist-jakarta-archive-tomcat-user@jakarta.apache.org Received: (qmail 22833 invoked by uid 97); 21 Jun 2002 11:53:20 -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 22821 invoked by uid 98); 21 Jun 2002 11:53:19 -0000 X-Antivirus: nagoya (v4198 created Apr 24 2002) Reply-To: From: "Jim Urban" To: "'Tomcat Users List'" , "'Alex'" Subject: RE: set content type to text/pdf Date: Fri, 21 Jun 2002 06:52:30 -0500 Message-ID: <002801c2191a$1fbe6250$4673f540@nsdom01> MIME-Version: 1.0 Content-Type: text/plain; charset="iso-8859-1" Content-Transfer-Encoding: 7bit X-Priority: 3 (Normal) X-MSMail-Priority: Normal X-Mailer: Microsoft Outlook CWS, Build 9.0.2416 (9.0.2910.0) In-Reply-To: <371182154808.20020621103709@go.ro> Importance: Normal X-MimeOLE: Produced By Microsoft MimeOLE V5.50.4807.1700 X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N X-Spam-Rating: daedalus.apache.org 1.6.2 0/1000/N Alex, Instead of httpservletresponse.setContentType("text/pdf"); try httpservletresponse.setContentType("application/pdf"); Jim Urban - jurban@parkcitysolutions.com Park City Solutions Inc. Clinical Connectivity Suite Product Manager Suite 295 500 Park Blvd. Itasca, IL 60143 Voice: (630) 250-3045 x106 Fax: (630) 250-3046 CONFIDENTIALITY NOTICE This message and any included attachments are from Park City Solutions Inc. and are intended only for the entity to which it is addressed. The contained information is confidential and privileged material. If you are not the intended recipient, you are hereby notified that any use, dissemination, or copying of this communication is strictly prohibited and may be unlawful. If you have received this communication in error please notify the sender of the delivery error by e-mail or call Park City Solutions Inc. corporate offices at (435) 654-0621 -----Original Message----- From: Alex [mailto:alexalecu@go.ro] Sent: Friday, June 21, 2002 2:37 AM To: tomcat-user@jakarta.apache.org Subject: set content type to text/pdf I have a servlet that generates pdf content. In the initData method, I use: httpservletresponse.setContentType("text/pdf"); When i access the servlet from the browser (i'm using win2k), it opens a small window asking me what to do with the file (open, save, cancel..), and then, when i choose "open", it asks me which application should i use to open that file (it is called Tiparire[1], because my servlet is called Tiparire), and then i choose acrobat reader. What can i do so my browser automatically opens the pdf content generated by the servlet ? Thanks in advance... Alex. -- To unsubscribe, e-mail: For additional commands, e-mail: -- To unsubscribe, e-mail: For additional commands, e-mail: