As I mentioned, you need to provide the full path of the files with the example servlet provided, and then the files can be anywhere. If you just provide the file name it is likely that will just look under bin. But you can change the servlet to look in whatever folder you want.

On 3/27/14, 4:06 AM, edi4988 wrote:
Do you know other way or other example where files can be in other folder different to "bin"? because if I have the xml and xslt files in other folder different to "bin" I have a error.


2014-03-26 16:56 GMT-06:00 Luis Bernardo [via Apache FOP] <[hidden email] </user/SendEmail.jtp?type=node&node=40353&i=0>>:


    See http://xmlgraphics.apache.org/fop/trunk/servlets.html.

    With the example servlet provided by FOP you need to specify the full
    path of your files (that is /path/to/my/file.fo <http://file.fo>).

    On 3/26/14, 9:02 PM, edi4988 wrote:

    > Hi everyone,
    >
    > why the xml and xsl files have to be in the bin folder of tomcat
    when I
    > generate a application web for that the application works?
    >
    > I have a web application to create rtf and pdf files with a
    Servlet. I need
    > to have my xml file and xsl file in in the bin folder of tomcat
    to that my
    > application works, but if I have the files in other different
    folder the
    > application dosen't work.
    >
    > I use the example on this page :
    >
    
http://svn.apache.org/viewvc/xmlgraphics/fop/tags/fop-1_1/src/java/org/apache/fop/servlet/FopServlet.java?view=log
    >
    > what can i do for that  the xml and xsl files can to be in other
    folder
    > different to bin?
    >
    > By example in a folder from my web application.
    >
    >
    >
    > --
    > View this message in context:
    
http://apache-fop.1065347.n5.nabble.com/why-the-xml-and-xsl-files-have-to-be-in-the-bin-folder-of-tomcat-when-I-generate-a-application-web-f-tp40348.html
    > Sent from the FOP - Users mailing list archive at Nabble.com.
    >
    >
    ---------------------------------------------------------------------
    > To unsubscribe, e-mail: [hidden email]
    <http://user/SendEmail.jtp?type=node&node=40350&i=0>
    > For additional commands, e-mail: [hidden email]
    <http://user/SendEmail.jtp?type=node&node=40350&i=1>
    >


    ---------------------------------------------------------------------
    To unsubscribe, e-mail: [hidden email]
    <http://user/SendEmail.jtp?type=node&node=40350&i=2>
    For additional commands, e-mail: [hidden email]
    <http://user/SendEmail.jtp?type=node&node=40350&i=3>



    ------------------------------------------------------------------------
    If you reply to this email, your message will be added to the
    discussion below:
    
http://apache-fop.1065347.n5.nabble.com/why-the-xml-and-xsl-files-have-to-be-in-the-bin-folder-of-tomcat-when-I-generate-a-application-web-f-tp40348p40350.html

    To unsubscribe from why the xml and xsl files have to be in the
    bin folder of tomcat when I generate a application web for that
    the application works?, click here.
    NAML
    
<http://apache-fop.1065347.n5.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>




------------------------------------------------------------------------
View this message in context: Re: why the xml and xsl files have to be in the bin folder of tomcat when I generate a application web for that the application works? <http://apache-fop.1065347.n5.nabble.com/why-the-xml-and-xsl-files-have-to-be-in-the-bin-folder-of-tomcat-when-I-generate-a-application-web-f-tp40348p40353.html> Sent from the FOP - Users mailing list archive <http://apache-fop.1065347.n5.nabble.com/FOP-Users-f3.html> at Nabble.com.

Reply via email to