You are viewing a plain text version of this content. The canonical link for it is here.
Posted to fop-dev@xmlgraphics.apache.org by "Hernandez Ramirez, Marta" <ma...@opciona.com> on 2001/03/19 12:29:24 UTC
Servlet problems
I´m creating pdf files using FOP.
>From the command line I type:
org.apache.fop.apps.XalanCommandLine file.xml file.xsl file.pdf
This works well.
Now I´m trying to use a servlet instead of using the command line, using
this code:
public class ServletFop extends HttpServlet {
public static final String FO_REQUEST_PARAM = "fo";
public void doGet(HttpServletRequest request,
HttpServletResponse response) throws
ServletException
{ try {
//XalanCommandLine miobjeto;
String eo[]=new String[3];
eo[0]="acceso.xml";
eo[1]="acceso.xsl";
eo[2]="acceso.pdf";
XalanCommandLine miobjeto=new XalanCommandLine(eo);
}
catch (Exception e)
{
}
}
}
It doesn´t work but I don´t know why.
Could anybody help me?
Thanks in advance
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: fop-dev-unsubscribe@xml.apache.org
For additional commands, email: fop-dev-help@xml.apache.org