You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-users@xmlgraphics.apache.org by Pedro Barco Bernal <pb...@ceh.junta-andalucia.es> on 2002/02/08 13:21:47 UTC
FOP.WAR
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?