PDF Generating Tool Support Forum

HOME   Login   Register    Search




  Subject: "getOutputStream() has already been called" Exception
   PostPosted: 30 May 2009, 22:03 
Your JSP has whitespace characters (i.e. new line chars) that cause the output writer to be opened before PD4ML takes control. Solution: remove all whitespaces (including "new line" characters) before "<pd4ml:transform ".

Wrong:
<%@ taglib uri="http://pd4ml.com/tlds/pd4ml/2.6" prefix="pd4ml" %>
<%@page contentType="text/html; charset=ISO8859_1"%>
<pd4ml:transform
    screenWidth="700"
    pageFormat="A4"


Correct:

<%@ taglib uri="http://pd4ml.com/tlds/pd4ml/2.6" prefix="pd4ml"
%><%@page contentType="text/html; charset=ISO8859_1"
%><pd4ml:transform
    screenWidth="700"
    pageFormat="A4"


In the first ("wrong") example there is a new line character between %> and <% as well as between %> and <pd4ml:transform, which cause the exception.



[Reply]     [ 1 post ] 

cron
Copyright ©2004-10 zefer|org. All rights reserved. Bookmark and Share