Re: JFor in a servlet
Bertrand Delacretaz <[email protected]> Thu, 26 Sep 2002 14:02:19 +0200
| Newsgroups | gmane.text.xml.jfor.general |
|---|---|
| Organization | codeconsult |
| Message-ID | <[email protected]> |
On Tuesday 24 September 2002 06:52, [email protected] wrote: > But if its problem with tomcat, then it should work from command prompt. > But it doesn't do that too. I think there's some problem with the > InputSource class, the way it takes the file path or the converter method. InputSource needs an URL, doesn't work with most filenames. For example, this works: jfor file:///home/bert/work/jfor/samples/cocoon/tests/simple-tests/text-sequencing.fo.xml test.rtf but this won't jfor samples/cocoon/tests/simple-tests/text-sequencing.fo.xml /tmp/test.rtf (this is linux, under Windows it might be even worse) So in a servlet you might need to define a base URL used to access the input files, I guess. -- Bertrand Delacrétaz (codeconsult.ch, jfor.org) buzzwords: XML, java, XSLT, cocoon, mentoring/teaching/coding. disclaimer: eternity is very long. mostly towards the end. get ready. ------------------------------------------------------- This sf.net email is sponsored by:ThinkGeek Welcome to geek heaven. http://thinkgeek.com/sf