Mike-

This looks like the problem IE has with getting nonstandard files straight
from a script.  "Nonstandard" is a bad term, but I had this same problem
with an ASP that created .m3u files for Winamp.  When I hit the page with
IE, it wouldn't handle the .m3u until I changed the name of the page to
have a .m3u extension, and set up an ASPI filter for it.

I believe the root of the problem is that IE is ignoting the Content-type
header, and you need to let it know it's getting a PDF through the URL.
You can either change the extension of the ASP page, like I did (which is
messy -- I wish I knew about the other option a while ago), or you can add
a dummy parameter to the QueryString, which has the string ".pdf" in it.
For example, change your existing URL to:

http://localhost:8080/fop?fo=C:\temp\helloworld3.fo&output=.pdf

Hope that helps.  I have not implemented this yet, so I may have messed up
my example.  All of my FOP work is creating PDFs on a filesystem, so I
haven't had to deal with this yet.  Hopefully, other members of the list
will correct any misinformation contained above.

-Jeff


                                                                                
                                                              
                    [EMAIL PROTECTED]                                           
                                                                  
                    eywell.com           To:     [EMAIL PROTECTED]              
                                                        
                                         cc:                                    
                                                              
                    06/18/2002           Subject:     RE: The newbie questions 
continue ...                                                   
                    01:14 PM                                                    
                                                              
                    Please                                                      
                                                              
                    respond to                                                  
                                                              
                    fop-user                                                    
                                                              
                                                                                
                                                              
                                                                                
                                                              




Happy to oblige ...

I'm using:

http://localhost:8080/fop?xml=c:\temp\helloworld.xml&xsl=c:
\temp\helloworld3
.xsl

to invoke.  I added a System.out.println to FopServlet to print out the
filenames and it shows:

Starting service Tomcat-Standalone
Apache Tomcat/4.0.4-b3
Starting service Tomcat-Apache
Apache Tomcat/4.0.4-b3
Running xml: c:\temp\helloworld.xml and xsl: c:\temp\helloworld3.xsl
Handler: or
[EMAIL PROTECTED]

As far as the servlet getting to the files, if I do:

http://localhost:8080/fop?fo=C:\temp\helloworld3.fo

I get the hello world pdf with no problem.

Thanks again, Mike

-----Original Message-----
From: Oleg Tkachenko [mailto:[EMAIL PROTECTED]
Sent: Tuesday, June 18, 2002 1:06 PM
To: [EMAIL PROTECTED]
Subject: Re: The newbie questions continue ...


[EMAIL PROTECTED] wrote:

> I have created a "HelloWorld" xml file and a xsl file and attempted to
use
> FopServlet to display it in pdf.  Unfortunately it only displays a blank
pdf
> page.
Probably something wrong with servlet's parameters? Show us how do you
invoke
servlet. Make sure servlat is able to find your xml and xsl.

--
Oleg Tkachenko
Multiconn International Ltd, Israel




Reply via email to