Guys, I know you have posted the response to my question in the FAQ but it simply is not working for me. What am I missing?
 
Why is your OutSimplePDF.java servlet displaying a blank screen in IE5.00 SP2? This code works fine in NetScape. All of the below is in your examle except generate_pdf(ba). I have tried to add it but it give a compliation error (cannot resolve symbol).
 
>  res.setContentType("application/pdf");
>  ByteArrayOutputStream ba = new ByteArrayOutputStream();
>  generate_pdf(ba);
>  res.setContentLength(ba.size());
>  ServletOutputStream out = res.getOutputStream();
>  ba.writeTo(out);
>  out.flush();

Reply via email to