Re: Problems with seeing pdf-files in IE 5.0

2001-12-17 Thread Stephan Kassanke



and use "?" as the separator not "&" 
...
 
Stephan

  - Original Message - 
  From: 
  Stephan 
  Kassanke 
  To: [EMAIL PROTECTED] 
  Sent: Monday, December 17, 2001 3:04 
  PM
  Subject: Re: Problems with seeing 
  pdf-files in IE 5.0
  
  Hi Cyril, we had a similar problem, the solution 
  is simple: just put a dummy parameter at the end, like
   
      http://www.somewhere.com/myjsp.jsp&dummy=my.pdf
   
  This will cause IE 5.0 to display the pdf in the 
  browser.
   
  Stephan
  
- Original Message - 
From: 
Cyril 
Rognon 
To: [EMAIL PROTECTED] 
Sent: Friday, December 07, 2001 2:43 
PM
    Subject: Re: Problems with seeing 
pdf-files in IE 5.0
It has been reported many times that IE5.0 needs some strong 
mime type information  : not only you must set the content-type 
HTTP header to "application/pdf" but you also have to use an url with ".pdf" 
at the end... Cyril RognonAt 14:05 07/12/2001 +0100, you 
wrote:
    I'm trying to see a pdf-report, created 
  dinamically with an XML-XSL process. But if I try to see it with an IE 
  5.0, I see just a blank page with an icon. If I try it with an IE 5.5, I 
  can see it with no problem. Why is it? And there is a solution, because I 
  cannot change the browser to 
5.5?


Re: Problems with seeing pdf-files in IE 5.0

2001-12-17 Thread Stephan Kassanke



Hi Cyril, we had a similar problem, the solution is 
simple: just put a dummy parameter at the end, like
 
    http://www.somewhere.com/myjsp.jsp&dummy=my.pdf
 
This will cause IE 5.0 to display the pdf in the 
browser.
 
Stephan

  - Original Message - 
  From: 
  Cyril 
  Rognon 
  To: [EMAIL PROTECTED] 
  Sent: Friday, December 07, 2001 2:43 
  PM
  Subject: Re: Problems with seeing 
  pdf-files in IE 5.0
  It has been reported many times that IE5.0 needs some strong 
  mime type information  : not only you must set the content-type HTTP 
  header to "application/pdf" but you also have to use an url with ".pdf" at the 
  end... Cyril RognonAt 14:05 07/12/2001 +0100, you wrote:
      I'm trying to see a pdf-report, created 
dinamically with an XML-XSL process. But if I try to see it with an IE 5.0, 
I see just a blank page with an icon. If I try it with an IE 5.5, I can see 
it with no problem. Why is it? And there is a solution, because I 
cannot change the browser to 
5.5?


RE: Problems with seeing pdf-files in IE 5.0

2001-12-10 Thread Raúl Carazo



Thank you very much for the example. But I receive 
an TransformerException in this line
 
    DOMResult foDomResult = new 
DOMResult();    
    
transformer.transform(xml, foDomResult);
 
foDoc = 
(Document)foDomResult.getNode();
Do you have any idea why it is?
 
Thank you very much, again.
 
Raúl
 
- Original Message - 
From: Savino, Matt C <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Friday, December 07, 2001 8:18 
PM
Subject: RE: Problems with seeing pdf-files in IE 
5.0
> Jim, I've attached the servlet that 
we use to handle a simlar issue issue to> what you describe. This serlvet 
handles both HTML and PDF requests and calls> either method based on a 
parameter in the user's session (which could just> as easily be in the 
request). Maybe it will help.> > > -Original 
Message-> > From: Jim Urban [mailto:[EMAIL PROTECTED]]> 
> Sent: Friday, December 07, 2001 11:02 AM> > To: [EMAIL PROTECTED]> > 
Subject: RE: Problems with seeing pdf-files in IE 5.0> > > > 
> > 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  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]


RE: Problems with seeing pdf-files in IE 5.0 | Specification of folder for XML/XSL files under Cocoon 2

2001-12-10 Thread Matthias Fischer

Yes, that syntax works definitively and was used by us as long as we
utilized FOP under Cocoon 1. Cocoon 2 does not present this url problem any
more.

It presents another one, though: XML files cannot be specified to lie in
_any_ folder (Windows version of Tomcat/Cocoon), they must be placed in a
specific location deep down in the file system, under
"Tomcat\webapps\cocoon..." (at least, this is our sys admin's statement). We
find this a slightly cumbersome solution.

Has anybody made a contrasting (=better) experience?

Matthias



-Original Message-
From: James Richardson [mailto:[EMAIL PROTECTED]]
Sent: Friday, December 07, 2001 4:05 PM
To: [EMAIL PROTECTED]
Subject: Re: Problems with seeing pdf-files in IE 5.0




Jim Urban wrote:

So how do you  use a url that ends
> with .pdf when using servlets?
>


I think you can do

http://any.url/servlets/Blah?stuff=.pdf

but not certain

James


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




RE: Problems with seeing pdf-files in IE 5.0

2001-12-07 Thread joseph . aloysius . gilvary


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"
  
 
  
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" . (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"

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  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 PROTECTE

RE: Problems with seeing pdf-files in IE 5.0

2001-12-07 Thread Jim Urban

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" . (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"

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  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]




RE: Problems with seeing pdf-files in IE 5.0

2001-12-07 Thread Savino, Matt C

Jim, I've attached the servlet that we use to handle a simlar issue issue to
what you describe. This serlvet handles both HTML and PDF requests and calls
either method based on a parameter in the user's session (which could just
as easily be in the request). Maybe it will help.

> -Original Message-
> From: Jim Urban [mailto:[EMAIL PROTECTED]]
> Sent: Friday, December 07, 2001 11:02 AM
> To: [EMAIL PROTECTED]
> Subject: RE: Problems with seeing pdf-files in IE 5.0
> 
> 
> 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  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]





ReportGeneratorServlet.java
Description: Binary data

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


RE: Problems with seeing pdf-files in IE 5.0

2001-12-07 Thread joseph . aloysius . gilvary


Do you write to the servlet response before you decide whether
"this is a job for FOP" . (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"
  
 
  
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  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]




RE: Problems with seeing pdf-files in IE 5.0

2001-12-07 Thread Jim Urban

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  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]




RE: Problems with seeing pdf-files in IE 5.0

2001-12-07 Thread Alex McLintock

 --- 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  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]




Re: Problems with seeing pdf-files in IE 5.0

2001-12-07 Thread Cyril Rognon

That's the trick if you have to use .pdf ended url, use the query string 
like Jamestold you to.

This is a particular IE5.0 pb, and some times it does not appear, the 
response content type may be enough.


Cyril Rognon

At 15:05 07/12/2001 +, you wrote:


>Jim Urban wrote:
>
>So how do you  use a url that ends
>>with .pdf when using servlets?
>
>
>I think you can do
>
>http://any.url/servlets/Blah?stuff=.pdf
>
>but not certain
>
>James


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




RE: Problems with seeing pdf-files in IE 5.0

2001-12-07 Thread Smith, Paul

You should be able to create a directory to servlet mapping in your web
server (usually in the web.xml file). 

Something like:

  
MyServlet
/MyServletDir
  

  
MyServlet
MyPdfGeneratingServlet
  

Then the browser can call www.myserver.com/MyServletDir/filename.pdf

Your servlet can retrieve the filename requested from the HttpServletRequest
(or just ignore it) and output it's response to the HttpServletResponse

---
Paul Smith

> Jim Urban wrote:
> 
> So how do you  use a url that ends with .pdf when using servlets?


***
DISCLAIMER: The information contained in this email
 is confidential and is intended solely for the use of the
 named addressee.  Access, copying or re-use of the
 information in it by any other person is not authorised.



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




Re: Problems with seeing pdf-files in IE 5.0

2001-12-07 Thread James Richardson



Jim Urban wrote:

So how do you  use a url that ends
> with .pdf when using servlets?
> 


I think you can do

http://any.url/servlets/Blah?stuff=.pdf

but not certain

James



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




RE: Problems with seeing pdf-files in IE 5.0

2001-12-07 Thread Jim Urban



> 
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?
 
Jim

  -Original Message-From: Cyril Rognon 
  [mailto:[EMAIL PROTECTED]]Sent: Friday, December 07, 2001 7:43 
  AMTo: [EMAIL PROTECTED]Subject: Re: Problems with 
  seeing pdf-files in IE 5.0It has been reported many times 
  that IE5.0 needs some strong mime type information  : not only you 
  must set the content-type HTTP header to "application/pdf" but you also have 
  to use an url with ".pdf" at the end... Cyril RognonAt 14:05 
  07/12/2001 +0100, you wrote:
      I'm trying to see a pdf-report, created 
dinamically with an XML-XSL process. But if I try to see it with an IE 5.0, 
I see just a blank page with an icon. If I try it with an IE 5.5, I can see 
it with no problem. Why is it? And there is a solution, because I 
cannot change the browser to 
5.5?


Re: Problems with seeing pdf-files in IE 5.0

2001-12-07 Thread Matt Savino

All my urls are .jsp and I don't have a problem with IE 4-5-6
recognizing them as PDF--as long as I set the response contentType. I
have a myriad of other problems with older verisons of IE, but this is
not one of them.

Cyril Rognon wrote:
> 
> It has been reported many times that IE5.0 needs some strong mime type
> information
>  : not only you must set the content-type HTTP header to
> "application/pdf" but you also have to use an url with ".pdf" at the
> end...
> 
> Cyril Rognon
> 
> At 14:05 07/12/2001 +0100, you wrote:
> 
> > I'm trying to see a pdf-report, created dinamically with an
> > XML-XSL process. But if I try to see it with an IE 5.0, I see just a
> > blank page with an icon. If I try it with an IE 5.5, I can see it
> > with no problem.
> >
> > Why is it? And there is a solution, because I cannot change the
> > browser to 5.5?
> >

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




Re: Problems with seeing pdf-files in IE 5.0

2001-12-07 Thread Cyril Rognon

It has been reported many times that IE5.0 needs some strong mime type
information 
 : not only you must set the content-type HTTP header to
"application/pdf" but you also have to use an url with
".pdf" at the end... 

Cyril Rognon

At 14:05 07/12/2001 +0100, you wrote:
   
I'm trying to see a pdf-report, created dinamically with an XML-XSL
process. But if I try to see it with an IE 5.0, I see just a blank page
with an icon. If I try it with an IE 5.5, I can see it with no
problem.
 
    Why is it? And there is a
solution, because I cannot change the browser to 5.5?



Problems with seeing pdf-files in IE 5.0

2001-12-07 Thread Raúl Carazo



    I'm trying to see a pdf-report, 
created dinamically with an XML-XSL process. But if I try to see it with an IE 
5.0, I see just a blank page with an icon. If I try it with an IE 5.5, I can see 
it with no problem.
 
    Why is it? And there is a 
solution, because I cannot change the browser to 5.5?
 
    thx
 
    Raul 
Carazo