RE: Using tomcat to serve PDF files

2004-03-05 Thread Peter Guyatt
Hi There, Thanks, I forgot to use get output stream. Cheers Pete -Original Message- From: Shapira, Yoav [mailto:[EMAIL PROTECTED] Sent: 05 March 2004 16:15 To: Tomcat Users List Subject: RE: Using tomcat to serve PDF files Hi, > I was hoping that someone would be a

RE: Using tomcat to serve PDF files

2004-03-05 Thread Shapira, Yoav
Hi, > I was hoping that someone would be able to point me in the direction >of an >example for using tomcat to serve PDF files. It's been discussed many times on the list in the past. There really isn't much to it: - Write the PDF via response.getOutputStream (not getWriter) because it's

Re: Using tomcat to serve PDF files

2004-03-05 Thread rsequeira
Tomcat should be doing that out-of-the-box currently: See "Default MIME Type Mappings" under conf/web.xml. Also on a side note: http://www.onjava.com/pub/a/onjava/2003/06/18/dynamic_files.html Thanks, RS