I'm developing a JSP with FOP and this code not run at TOMCAT server

   try{
    File xmlf = new File("xml.xml");
    File xslf = new File("xsl.xsl");
    File writefile = new File("fop333.pdf");
    writefile.createNewFile();
    Driver driver = new Driver();
    driver.setRenderer(Driver.RENDER_PDF);
    InputHandler inputHandler = new XSLTInputHandler(xmlf, xslf);
    XMLReader parser = inputHandler.getParser();
    InputSource inputSource = inputHandler.getInputSource();
    driver.setOutputStream(new FileOutputStream(writefile));
    driver.render(parser, inputSource);
    //writefile.close();
    } catch (Exception ex) {System.out.println(ex.toString()); }
  }

¿what is the utility of fop.war file?


Reply via email to