|
Yeah... I dropped it where all my jsp files reside.
Thanks, Chad
-----Original Message-----
From: Ashish Kulkarni [mailto:kulkarni_ash1312@xxxxxxxxx] Sent: Thursday, January 08, 2004 2:32 PM
To: Java Programming on and around the iSeries / AS400
Subject: Re: Opening PDF Files throught Tomcat
Hi
did u drop it like in a folder where u have all your
jsp , html files etc, in this case it should work,
I guess must be some setting in IE which is not able
to handle it, not sure please reconfirm
public void doGet(HttpServletRequest req, HttpServletResponse res) throws ServletException, IOException { res.setContentType("application/pdf"); res.setHeader( "Content-Disposition", "inline; filename= myfile.pdf" ); ... }
If you serve the file with a res.sendRedirect("path_to_my_pdf"), check also that pdf MIME type is defined in the tomcat/conf/web.xml file: ... <mime-mapping> <extension>pdf</extension> <mime-type>application/pdf</mime-type> </mime-mapping> ...
-- -------------------------------------------------------------- Gilles Kuhn, ingenieur développement KUHN ORGANISATION 4, rue Hannong 67380 Lingolsheim (France) tél: +33 3 88 76 54 44 fax: +33 3 88 76 90 07 --------------------------------------------------------------
As an Amazon Associate we earn from qualifying purchases.
This mailing list archive is Copyright 1997-2024 by midrange.com and David Gibbs as a compilation work. Use of the archive is restricted to research of a business or technical nature. Any other uses are prohibited. Full details are available on our policy page. If you have questions about this, please contact [javascript protected email address].
Operating expenses for this site are earned using the Amazon Associate program and Google Adsense.