Sorry, I jumped into the middle of that thread and hadn't noticed the
piece about IE 5.0 requiring the specific extension.

Any possibility your user community will upgrade their browser for
this (and other) considerations?

 Joe



                                                                                       
                          
                    "Jim Urban"                                                        
                          
                    <jim.urban@net        To:     <[EMAIL PROTECTED]>             
                          
                    steps.net>            cc:                                          
                          
                                          Subject:     RE: Problems with seeing 
pdf-files in IE 5.0              
                    12/07/2001                                                         
                          
                    02:51 PM                                                           
                          
                    Please respond                                                     
                          
                    to fop-dev                                                         
                          
                                                                                       
                          
                                                                                       
                          



You are correct, we set the content type to PDF before sending anything
back.  The problem is how to invoke this servlet and use a .PDF extension
when we don't know we are going to get a PDF back.

Jim

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED]]
Sent: Friday, December 07, 2001 1:14 PM
To: [EMAIL PROTECTED]
Subject: RE: Problems with seeing pdf-files in IE 5.0



Do you write to the servlet response before you decide whether
"this is a job for FOP" <G>. (Sorry)

If the response to the browser hasn't begun, I think you should be
able to call setContentType("application/pdf") on the
ServletResponse instance as soon as you find the
XSL:FO file.

It's up to the browser then to handle the incoming mime type.

Or am I missing the point entirely?

 Joe




                    "Jim Urban"
                    <jim.urban@net        To:     <[EMAIL PROTECTED]>
                    steps.net>            cc:
                                          Subject:     RE: Problems with
seeing pdf-files in IE 5.0
                    12/07/2001
                    02:01 PM
                    Please respond
                    to fop-dev





Here is the real problem.  When the servlet is posted to, the browser has
no
knowledge of what type of data will be sent back.  We have a single servlet
which looks at the request and calls the appropriate class to process the
request.  The request then sends XML back to the servlet.  Then based upon
the presence of the parameter "print" in the http request, our servlet
attempts to locate the XSL:FO file that maps to the request.  If the XSL:FO
file is found, we FOP the XML and send back PDF.  Otherwise we use a
XSL:HTML file and send back a HTML page.  Our clients are responsible for
providing XSL:FO files for the pages they want PDF prints.  The XSL:FO
files
are optional and may or may not exist.

Jim

-----Original Message-----
From: Alex McLintock [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 07, 2001 11:05 AM
To: [EMAIL PROTECTED]
Subject: RE: Problems with seeing pdf-files in IE 5.0


 --- Jim Urban <[EMAIL PROTECTED]> wrote: > > you also have to use an
url with ".pdf" at the
end
> The url the client is posting to is a servlet which uses FOP to generate
a
> PDF and feed it back to the browser.  If the client post a request to
> myservlet.pdf the server will look for a file called myservlet.pdf and
> return a 403 when it can't find it.  So how do you use a url that ends
with
> .pdf when using servlets?

If you can't set up an alias in the webserver as people have suggested you
could
always have a servlet class called "pdf" within a package "myservlet".
End result: myservlet.pdf





Could have sworn this was in the FAQ.

Oh dear - that means the FAQ isn't good enough yet....


Alex


=====
Alex McLintock        [EMAIL PROTECTED]    Open Source Consultancy in London
OpenWeb Analysts Ltd, http://www.OWAL.co.uk/
---
SF and Computing Book News and Reviews: http://news.diversebooks.com/
Get Your XML T-Shirt <t-shirt/> at http://www.inversity.co.uk/
COMPETITION : http://news.diversebooks.com/article.pl?sid=01/10/08/1947255

________________________________________________________________
Nokia 5510 looks weird sounds great.
Go to http://uk.promotions.yahoo.com/nokia/ discover and win it!
The competition ends 16 th of December 2001.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]






---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, email: [EMAIL PROTECTED]

Reply via email to