org.apache.fop.servlet
Class FopPrintServlet
public class FopPrintServlet
Example servlet to generate a fop printout from a servlet.
Printing goes to the default printer on host where the servlet executes.
Servlet param is:
- fo: the path to a XSL-FO file to render
or
- xml: the path to an XML file to render
- xslt: the path to an XSLT file that can transform the above XML to XSL-FO
Example URL: http://servername/fop/servlet/FopPrintServlet?fo=readme.fo
Example URL: http://servername/fop/servlet/FopPrintServlet?xml=data.xml&xsl=format.xsl
Note: This servlet is derived from FopServlet. Most methods are inherited from the
superclass. Only the differences to the base class are necessary.
$Id: FopPrintServlet.java 426576 2006-07-28 15:44:37Z jeremias $
protected void | render(Source src, Transformer transformer, HttpServletResponse response)
|
render
protected void render(Source src,
Transformer transformer,
HttpServletResponse response)
throws FOPException,
TransformerException,
IOException
- render in interface FopServlet
org.apache.fop.servlet.FopServlet.render(javax.xml.transform.Source,
javax.xml.transform.Transformer, javax.servlet.http.HttpServletResponse)
Copyright 1999-2007 The Apache Software Foundation. All Rights Reserved.