keiron      2002/11/13 23:35:45

  Modified:    contrib/servlet/src FopPrintServlet.java FopServlet.java
  Log:
  updated to latest api for setting logger
  
  Revision  Changes    Path
  1.3       +5 -5      xml-fop/contrib/servlet/src/FopPrintServlet.java
  
  Index: FopPrintServlet.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/contrib/servlet/src/FopPrintServlet.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- FopPrintServlet.java      12 Apr 2002 07:01:57 -0000      1.2
  +++ FopPrintServlet.java      14 Nov 2002 07:35:45 -0000      1.3
  @@ -101,7 +101,7 @@
               PrinterJob pj = PrinterJob.getPrinterJob();
               PrintRenderer renderer = new PrintRenderer(pj);
   
  -            driver.setLogger (log);
  +            driver.enableLogging(log);
               driver.setRenderer(renderer);
               driver.run();
   
  @@ -123,9 +123,9 @@
   
               pj.setCopies(1);
   
  -            driver.setLogger (log);
  -            driver.setRenderer (renderer);
  -            driver.render (input.getParser(), input.getInputSource());
  +            driver.enableLogging(log);
  +            driver.setRenderer(renderer);
  +            driver.render(input.getParser(), input.getInputSource());
   
               reportOK (response);
           } catch (Exception ex) {
  
  
  
  1.3       +3 -3      xml-fop/contrib/servlet/src/FopServlet.java
  
  Index: FopServlet.java
  ===================================================================
  RCS file: /home/cvs/xml-fop/contrib/servlet/src/FopServlet.java,v
  retrieving revision 1.2
  retrieving revision 1.3
  diff -u -r1.2 -r1.3
  --- FopServlet.java   12 Apr 2002 07:01:57 -0000      1.2
  +++ FopServlet.java   14 Nov 2002 07:35:45 -0000      1.3
  @@ -93,7 +93,7 @@
               response.setContentType("application/pdf");
   
               Driver driver = new Driver(foFile, out);
  -            driver.setLogger(log);
  +            driver.enableLogging(log);
               driver.setRenderer(Driver.RENDER_PDF);
               driver.run();
   
  @@ -119,7 +119,7 @@
               response.setContentType("application/pdf");
   
               Driver driver = new Driver();
  -            driver.setLogger(log);
  +            driver.enableLogging(log);
               driver.setRenderer(Driver.RENDER_PDF);
               driver.setOutputStream(out);
               driver.render(input.getParser(), input.getInputSource());
  
  
  

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to