Yes! I noticed that..because that was working fine with netscape. and should work now with IEx too. But I have programmed that the pdf is saved to specific file(that is the way I want it) ie teh pdf generated be saved as a specific file in the server. But that doesnt seem to happen.I was expecting it to be saved in tomcat/bin. Any idea of setting something else for that? Thanks Nirupama
This what I have written: ByteArrayOutputStream xslOut = new ByteArrayOutputStream(); byte[] pdfOutData = doRenderPDF(xslOut); response.setContentType("application/pdf"); response.setContentType("application/pdf; name=\"test12.pdf\""); response.setHeader("Content-Disposition", "inline;filename=\"test12.pdf\""); response.setContentLength(pdfOutData.length); OutputStream resOut = response.getOutputStream(); resOut.write(pdfOutData); resOut.close(); > In your browser? Look into the browser cache first. > IEx is a bit fragile when it comes to showing PDF. > Configure your webapp so that you can use an URL > ending in .pdf for retrieving the PDF: > http://my.host/some/path/to/servlet.pdf > or > > http://my.host/some/path/to/servlet.pdf?xml=foo.xml&xsl=foo.xsl&dummy=.pdf > > More importantly, set the content type correctly > to application/pdf, and buffer the PDF output in > a ByteArrayOutputStream so that you can send the > exact length to the browser (IEx will show a > blank window if you fail to do this). > > J.Pietschmann ===== __________________________________________________ Do You Yahoo!? Yahoo! - Official partner of 2002 FIFA World Cup http://fifaworldcup.yahoo.com --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, email: [EMAIL PROTECTED]