• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

FOP example servlet is a flop

 
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I have installed Apache FOP and tested the command line version to convert xml -> pdf on my machine (NT4 JDK1.4 + Tomcat 4.0.5, IE5.5) and it works fine.

I have installed the example servlet and altered the logger output to show me what is going on. This appears to work OK as the report I get back confirms everything is working. But I get no output in the browser although the page looks as if it has been downloaded as IE5.5 says 'done'
In notice the apache site metions that there are sometimes problems with pdf files in IE.Is this a problem with FOP or IE5.5 ?
Any advice would be appreciated
Many Thanks,
Shaun
 
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I was having that problem with MSIE 6.0 but it went away when I downloaded the latest version of Acrobat. I think that somehow MSIE had forgotten how to invoke the viewer.
Bill
 
Shaun Appleton
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Tried installing IE6 and also the latest version of Acrobat and it still fails. I'll have to think of another way of doing it.
 
William Brogden
Author and all-around good cowpoke
Posts: 13078
6
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
What headers is the servlet creating with respect to content-type and content-length?
Bill
 
author and deputy
Posts: 3150
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator

Originally posted by Shaun Appleton:
I have installed Apache FOP and tested the command line version to convert xml -> pdf on my machine (NT4 JDK1.4 + Tomcat 4.0.5, IE5.5) and it works fine...............
Shaun


Thats a common problem,it can be solved by adding a dummy variable at the end of the URL.
example:
http://servername/servlet/FopServlet?fo=readme.fo&pdf=dummy.pdf
http://servername/servlet/FopServlet?xml=data.xml&xsl=format.xsl&pdf=dummy.pdf
This will work in all browser now!.
Regards
Balaji
 
Shaun Appleton
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
It surely does!
Thankyou very much!
Shaun
 
reply
    Bookmark Topic Watch Topic
  • New Topic