on 05-19-2005 10:20 PM
Hi, I have a Java module that generates a PDF using the Jakarta FOP generator. I am currently porting this module from a different J2EE server to NetWeaver. The process works find on the old J2EE server, but in NetWeaver I am receiving a blank screen when the PDF is sent back to the browser. After the PDF has been generated through FOP, I set the response content type as follows:
response.setContentType("application/pdf");
I then send the PDF stream to the browser:
response.setContentLength(content.length);
response.getOutputStream().write(content);
I have set the Mime type in my Web.xml file, but I am wondering if there is something else I have to do in NetWeaver to enable this.
We are using NetWeaver 6.30.
Any thoughts?
Thanks
Anthony
Hi,
Try setting the content type in the @page directive using the contentType attribute.
Regards,
Sesh
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.
User | Count |
---|---|
95 | |
11 | |
10 | |
9 | |
9 | |
7 | |
6 | |
5 | |
5 | |
4 |
You must be a registered user to add a comment. If you've already registered, sign in. Otherwise, register and sign in.