Re: Viewing PDF in Internet Explorer

2005-08-26 Thread Mark Sutton





This may be due to the version of Tomcat you are using.  It sounds a lot
like this bug:

http://issues.apache.org/bugzilla/show_bug.cgi?id=24970

This hit me when I tried upgrading from 4.1.27 to 4.1.29.  I am not sure in
which subsequest version it was fixed.  It may have been 4.1.31.  You could
always try 5.X?

Mark Sutton
Client Services IT Development
Fimat International Banque SA (UK Branch)
SG House
41 Tower Hill
London  EC3N 4SG
Tel:  +44 20 7676 8311

e-mail:[EMAIL PROTECTED]



  
Christoph   
  
KutzinskiTo: Tomcat Users List 
tomcat-user@jakarta.apache.org   
[EMAIL PROTECTED]   cc:   
   
 Subject: Re: Viewing PDF in 
Internet Explorer
24/08/2005  
  
15:06   
  
Please respond  
  
to Tomcat  
  
Users List 
  

  

  




[EMAIL PROTECTED] wrote:
 I should have been more clear in stating my problem.

 I am using a Reporting software with Tomcat.  The Reporting servlet
 receives the report request, passes it to the
 Reporting Server (lives where the data is), and the Reporting Server
sends
 it back to the client (servlet). The output
 HTML is automatically generated, and apparently the following is
happening
 with PDF (the Excel plug-in
 works fine).


 A JSP-Page (or Servlet) like

   %
 response.setContentType(application/pdf);
   %

 results in the Content-Type-Header

   Content-Type: application/pdf;charset=ISO-8859-1

 which is not allowed according to HTTP-RFCs. The charset may only be
 appended
 when the Content-Type is text/*.

Just a wild guess:
Have tried to set the character encoding?

  response.setCharacterEncoding(null) or ()



Christoph

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






***
Please note that this email address will be converted from the current
email address to [EMAIL PROTECTED]  You are encouraged
to start using this address for all future communications.

Non-impartial research: Fimat UK does not produce research in circumstances in 
which it is appropriate to characterise it as impartial as referred to in the 
rules of the Financial Services Authority . All communications of Fimat UK are, 
however, fair, clear and not misleading. The views expressed are those of the 
author and do not necessarily reflect the views of other departments of Fimat 
or associated groups.

The e-mail and any attachments are confidential. They may contain
privileged information and are intended for the named addressee(s)
only. If you are not the intended recipient, please notify us
immediately and do not disclose, distribute, or retain this e-mail
or any part of it.

Unless expressly stated, opinions in this e-mail are those of the
individual sender and not of the FIMAT Group. We believe but do not
warrant that this e-mail and any attachments are virus free. 
You must therefore take full responsibility for virus checking. 
The FIMAT Group reserve the right to monitor e-mail communications
through its networks. 

Where this communication constitutes a financial promotion it is issued
and approved by Fimat International Banque S.A. (UK Branch) and is 
only intended for persons of a kind described in article 19(5) of the
Financial Services and Markets Act 2000 (Financial Promotion) Order
2001.  This information is not intended to be distributed to UK Private
Customers (as defined by the Financial Services Authority).

Fimat International Banque S.A. (UK Branch) whose registered branch
in England is at SG House, 41 Tower Hill, London EC3N 4SG is authorised
by the Commission Bancaire in France and by the UK Financial Services

Re: Viewing PDF in Internet Explorer

2005-08-26 Thread Mark Sutton





This may be due to the version of Tomcat you are using.  It sounds a lot
like this bug:

http://issues.apache.org/bugzilla/show_bug.cgi?id=24970

This hit me when I tried upgrading from 4.1.27 to 4.1.29.  I am not sure in
which subsequest version it was fixed.  It may have been 4.1.31.  You could
always try 5.X?

Mark Sutton
Client Services IT Development
Fimat International Banque SA (UK Branch)
SG House
41 Tower Hill
London  EC3N 4SG
Tel:  +44 20 7676 8311

e-mail:[EMAIL PROTECTED]



  
Christoph   
  
KutzinskiTo: Tomcat Users List 
tomcat-user@jakarta.apache.org   
[EMAIL PROTECTED]   cc:   
   
 Subject: Re: Viewing PDF in 
Internet Explorer
24/08/2005  
  
15:06   
  
Please respond  
  
to Tomcat  
  
Users List 
  

  

  




[EMAIL PROTECTED] wrote:
 I should have been more clear in stating my problem.

 I am using a Reporting software with Tomcat.  The Reporting servlet
 receives the report request, passes it to the
 Reporting Server (lives where the data is), and the Reporting Server
sends
 it back to the client (servlet). The output
 HTML is automatically generated, and apparently the following is
happening
 with PDF (the Excel plug-in
 works fine).


 A JSP-Page (or Servlet) like

   %
 response.setContentType(application/pdf);
   %

 results in the Content-Type-Header

   Content-Type: application/pdf;charset=ISO-8859-1

 which is not allowed according to HTTP-RFCs. The charset may only be
 appended
 when the Content-Type is text/*.

Just a wild guess:
Have tried to set the character encoding?

  response.setCharacterEncoding(null) or ()



Christoph

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






***
Please note that this email address will be converted from the current
email address to [EMAIL PROTECTED]  You are encouraged
to start using this address for all future communications.

Non-impartial research: Fimat UK does not produce research in circumstances in 
which it is appropriate to characterise it as impartial as referred to in the 
rules of the Financial Services Authority . All communications of Fimat UK are, 
however, fair, clear and not misleading. The views expressed are those of the 
author and do not necessarily reflect the views of other departments of Fimat 
or associated groups.

The e-mail and any attachments are confidential. They may contain
privileged information and are intended for the named addressee(s)
only. If you are not the intended recipient, please notify us
immediately and do not disclose, distribute, or retain this e-mail
or any part of it.

Unless expressly stated, opinions in this e-mail are those of the
individual sender and not of the FIMAT Group. We believe but do not
warrant that this e-mail and any attachments are virus free. 
You must therefore take full responsibility for virus checking. 
The FIMAT Group reserve the right to monitor e-mail communications
through its networks. 

Where this communication constitutes a financial promotion it is issued
and approved by Fimat International Banque S.A. (UK Branch) and is 
only intended for persons of a kind described in article 19(5) of the
Financial Services and Markets Act 2000 (Financial Promotion) Order
2001.  This information is not intended to be distributed to UK Private
Customers (as defined by the Financial Services Authority).

Fimat International Banque S.A. (UK Branch) whose registered branch
in England is at SG House, 41 Tower Hill, London EC3N 4SG is authorised
by the Commission Bancaire in France and by the UK Financial Services

Re: Viewing PDF in Internet Explorer

2005-08-24 Thread CFerraro

I should have been more clear in stating my problem.

I am using a Reporting software with Tomcat.  The Reporting servlet
receives the report request, passes it to the
Reporting Server (lives where the data is), and the Reporting Server sends
it back to the client (servlet). The output
HTML is automatically generated, and apparently the following is happening
with PDF (the Excel plug-in
works fine).


A JSP-Page (or Servlet) like

  %
response.setContentType(application/pdf);
  %

results in the Content-Type-Header

  Content-Type: application/pdf;charset=ISO-8859-1

which is not allowed according to HTTP-RFCs. The charset may only be
appended
when the Content-Type is text/*.

It causes bad behaviour with IE, that's this can be critical for some
Servlets.


If Mozilla Firefox is used instead of IE, the pdf loads in the browser.
Unfortunately, the decision to switch browsers is not mine and
I don't want to switch to IIS with the New Atlanta servlet engine.

Thanks,
Chris Ferraro









   
  Brian Cook
   
  [EMAIL PROTECTED]To:   Tomcat Users List 
tomcat-user@jakarta.apache.org
  com cc:  
   
   Subject:  Re: Viewing PDF in 
Internet Explorer  
  08/23/05 05:31 PM 
   
  Please respond to 
   
  Tomcat Users 
   
  List 
   

   

   





What issue?  If you are needing to get a page to load a PDF you have two
options.

   1.  Set an A tag with the source value set to the location of the
PDF.  This will load the PDF in the entire window assuming that they
have the PDF plug in installed.

   2.  The other option is to use frames and have the PDF load as the
source of one of the frames.  This will load the PDF in one of the
frames and give you space around it if you need it.

Did that answer your question?  If not we would need at lest a hint of
what problem is.


[EMAIL PROTECTED] wrote:
 I am using Tomcat 5.0.28 and need to have a pdf document open as a
plug-in
 in Internet Explorer.

 I tried using the response.class file (pertaining to the content-type)
 recommended in the
 bug documentation 24970, but it did not make a difference. Is there any
 additional information/solutions that are available for this issue?

 Regards,
 Chris Ferraro


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




--
Brian Cook
Digital Services Analyst
Print Time Inc.
[EMAIL PROTECTED]
913.345.8900

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




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



Re: Viewing PDF in Internet Explorer

2005-08-24 Thread Christoph Kutzinski

[EMAIL PROTECTED] wrote:

I should have been more clear in stating my problem.

I am using a Reporting software with Tomcat.  The Reporting servlet
receives the report request, passes it to the
Reporting Server (lives where the data is), and the Reporting Server sends
it back to the client (servlet). The output
HTML is automatically generated, and apparently the following is happening
with PDF (the Excel plug-in
works fine).


A JSP-Page (or Servlet) like

  %
response.setContentType(application/pdf);
  %

results in the Content-Type-Header

  Content-Type: application/pdf;charset=ISO-8859-1

which is not allowed according to HTTP-RFCs. The charset may only be
appended
when the Content-Type is text/*.


Just a wild guess:
Have tried to set the character encoding?

 response.setCharacterEncoding(null) or ()



Christoph

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



Viewing PDF in Internet Explorer

2005-08-23 Thread CFerraro
I am using Tomcat 5.0.28 and need to have a pdf document open as a plug-in
in Internet Explorer.

I tried using the response.class file (pertaining to the content-type)
recommended in the
bug documentation 24970, but it did not make a difference. Is there any
additional information/solutions that are available for this issue?

Regards,
Chris Ferraro


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



RE: Viewing PDF in Internet Explorer

2005-08-23 Thread Jim Henderson
I am not familiar with 24970.  But what we have done is use an iframe (or a
frameset) where the source url points back to a servlet that would set the
mime type and pass back the PDF data stream.

Hope that helps.

-Original Message-
From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
Sent: Tuesday, August 23, 2005 4:07 PM
To: tomcat-user@jakarta.apache.org
Subject: Viewing PDF in Internet Explorer


I am using Tomcat 5.0.28 and need to have a pdf document open as a plug-in
in Internet Explorer.

I tried using the response.class file (pertaining to the content-type)
recommended in the
bug documentation 24970, but it did not make a difference. Is there any
additional information/solutions that are available for this issue?

Regards,
Chris Ferraro


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




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



Re: Viewing PDF in Internet Explorer

2005-08-23 Thread Brian Cook


What issue?  If you are needing to get a page to load a PDF you have two 
options.


  1.  Set an A tag with the source value set to the location of the 
PDF.  This will load the PDF in the entire window assuming that they 
have the PDF plug in installed.


  2.  The other option is to use frames and have the PDF load as the 
source of one of the frames.  This will load the PDF in one of the 
frames and give you space around it if you need it.


Did that answer your question?  If not we would need at lest a hint of 
what problem is.



[EMAIL PROTECTED] wrote:

I am using Tomcat 5.0.28 and need to have a pdf document open as a plug-in
in Internet Explorer.

I tried using the response.class file (pertaining to the content-type)
recommended in the
bug documentation 24970, but it did not make a difference. Is there any
additional information/solutions that are available for this issue?

Regards,
Chris Ferraro


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





--
Brian Cook
Digital Services Analyst
Print Time Inc.
[EMAIL PROTECTED]
913.345.8900

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