Okay, What I'm trying to do was simply modify the existing FopServlet.java file to accept a url as paramater so that the xml source file and xsl file are read from the remote server via http and not from the local file system. I thought from what i read about the prepackaged java libraries that there would be a simple way to use a prebuilt java class function to change the File(xmlParam) where xmlParam would = something like c:\path\to\xmldata.xml to something like URL(xmlParam) where xmlParam would = http://url.to/xmldata.xml i seem to be wrong tho.
Like i stated, java is foreign to me. Thanks tho :( -Adam -----Original Message----- From: Jasmin Mehta [mailto:[EMAIL PROTECTED] Sent: March 21, 2003 2:35 PM To: [EMAIL PROTECTED] Subject: RE: url to xml/xsl file in servlet Actually what you need to do is, read the examples given in FOP. Look for FopServlet.java file. It describes how you can embed fop in servlet. Second thing, you need to pass Document obj of XML file. What are you getting as xmlParam? If you are getting xml file name, than you need to create Document object from it before passing it to renderXML method. For that you should know how JDOM/DOM is working. Jasmin --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
