Found it (I think). I believe it was a servlet caching issue. I went and tried my example again and out of the blue it worked. I forgot that somewhere in the chain from my servlet engine (Tomcat on Linux) to my browser (IE 6) servlets get cached. Sometimes when I make a change it takes 4-6 browser page reloads for the latest compile of the servlet to show up. I think this is what happened. I'm sorry for the trouble and you guys time on this but maybe this post will help someone down the road.
Again thanks, Kenny ----- Original Message ----- From: "Matt Benson" <[EMAIL PROTECTED]> To: "Kenny G. Dubuisson, Jr." <[EMAIL PROTECTED]>; <[EMAIL PROTECTED]> Sent: Wednesday, December 11, 2002 11:24 AM Subject: Re: [iText-questions] Newbie servlet won't output anything > Okay, I don't know then. :) But someone else may. > Do you know if it works in Netscape? > > -Matt > > --- "Kenny G. Dubuisson, Jr." <[EMAIL PROTECTED]> > wrote: > > Yes I have. I'm running IE 6.0.26 with all the > > latest SP/patches installed. > > Also, if I visit out web site which has PDF's linked > > on it, when clicked the > > PDF file opens in IE as normal. Only from my > > servlet does it fail to open. > > Thanks, > > Kenny > > > > ----- Original Message ----- > > From: "Matt Benson" <[EMAIL PROTECTED]> > > To: "Kenny G. Dubuisson, Jr." > > <[EMAIL PROTECTED]> > > Cc: "itext-questions" > > <[EMAIL PROTECTED]> > > Sent: Wednesday, December 11, 2002 11:10 AM > > Subject: Re: [iText-questions] Newbie servlet won't > > output anything > > > > > > > Have you read all the stuff in the FAQ about > > problems > > > with the IE plugin? > > > > > > -Matt > > > > > > --- "Kenny G. Dubuisson, Jr." > > <[EMAIL PROTECTED]> > > > wrote: > > > > Yes it compiles fine. FYI this is my second try > > at > > > > it; at first I didn't > > > > use the BAOS and set the length but at least > > then I > > > > got a "Save file" dialog > > > > and it saved it as a good PDF which I opened in > > > > Acrobat Reader. But now I > > > > get nothing. > > > > Thanks, > > > > Kenny > > > > > > > > ----- Original Message ----- > > > > From: "Matt Benson" <[EMAIL PROTECTED]> > > > > To: "Kenny G. Dubuisson, Jr." > > > > <[EMAIL PROTECTED]>; > > > > <[EMAIL PROTECTED]> > > > > Sent: Wednesday, December 11, 2002 11:04 AM > > > > Subject: Re: [iText-questions] Newbie servlet > > won't > > > > output anything > > > > > > > > > > > > > At a quick glance it looks fine. Does it > > compile? > > > > > > > > > > -Matt > > > > > > > > > > --- "Kenny G. Dubuisson, Jr." > > > > <[EMAIL PROTECTED]> > > > > > wrote: > > > > > > I have created a servlet that I would like > > to > > > > create > > > > > > a test PDF document and open it inline in > > > > Acrobat > > > > > > Reader in IE. I've looked at some postings > > to > > > > see > > > > > > how to do this and I think I've got it > > close. > > > > Any > > > > > > ideas on how to get it to work would be very > > > > > > appreciated. Thanks, > > > > > > Kenny > > > > > > > > > > > > Below is the servlet code: > > > > > > > > > > > > import java.io.*; > > > > > > import javax.servlet.*; > > > > > > import javax.servlet.http.*; > > > > > > import com.lowagie.text.*; > > > > > > import com.lowagie.text.pdf.PdfWriter; > > > > > > > > > > > > public class PDFTest extends HttpServlet > > > > > > { > > > > > > public void doGet(HttpServletRequest > > request, > > > > > > HttpServletResponse response) throws > > > > > > ServletException, IOException > > > > > > { > > > > > > OutputStream out = > > > > response.getOutputStream(); > > > > > > ByteArrayOutputStream baos = new > > > > > > ByteArrayOutputStream(); > > > > > > try > > > > > > { > > > > > > Document document = new Document(); > > > > > > PdfWriter.getInstance(document, > > baos); > > > > > > document.open(); > > > > > > document.add(new Paragraph("Hello > > > > World")); > > > > > > document.close(); > > > > > > > > > > response.setContentType("application/pdf"); > > > > > > > > response.setContentLength(baos.size()); > > > > > > > > response.setBufferSize(baos.size()); > > > > > > baos.writeTo(out); > > > > > > out.flush(); > > > > > > } > > > > > > catch (Exception e) > > > > > > { > > > > > > System.err.println(e.toString()); > > > > > > } > > > > > > finally > > > > > > { > > > > > > out.close(); > > > > > > } > > > > > > } > > > > > > } > > > > > > > > > > > > > > > > > > > > > > > > > > > > > __________________________________________________ > > > > > Do you Yahoo!? > > > > > Yahoo! Mail Plus - Powerful. Affordable. Sign > > up > > > > now. > > > > > http://mailplus.yahoo.com > > > > > > > > > > > > > > > > > > __________________________________________________ > > > Do you Yahoo!? > > > Yahoo! Mail Plus - Powerful. Affordable. Sign up > > now. > > > http://mailplus.yahoo.com > > > > > > > > > > > > ------------------------------------------------------- > > > This sf.net email is sponsored by: > > > With Great Power, Comes Great Responsibility > > > Learn to use your power at OSDN's High Performance > > Computing Channel > > > http://hpc.devchannel.org/ > > > _______________________________________________ > > > iText-questions mailing list > > > [EMAIL PROTECTED] > > > > > > https://lists.sourceforge.net/lists/listinfo/itext-questions > > > > > > > > > > > > ------------------------------------------------------- > > This sf.net email is sponsored by: > > With Great Power, Comes Great Responsibility > > Learn to use your power at OSDN's High Performance > > Computing Channel > > http://hpc.devchannel.org/ > > _______________________________________________ > > iText-questions mailing list > > [EMAIL PROTECTED] > > > https://lists.sourceforge.net/lists/listinfo/itext-questions > > > __________________________________________________ > Do you Yahoo!? > Yahoo! Mail Plus - Powerful. Affordable. Sign up now. > http://mailplus.yahoo.com > ------------------------------------------------------- This sf.net email is sponsored by: With Great Power, Comes Great Responsibility Learn to use your power at OSDN's High Performance Computing Channel http://hpc.devchannel.org/ _______________________________________________ iText-questions mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/itext-questions