Re: AW: set content type to text/pdf

2002-06-21 Thread Alex

Hello Ralph,

  I can't point my browser to a location that ends with .pdf,
  because i have to point it to my servlet, for ex:
  document.location.href=/servlet/Tiparire
  Is there any trick to do this ?

  Alex.
  

Friday, June 21, 2002, 10:44:00 AM, you wrote:

RE MS IE has sometimes his own opinion what to open and 
RE ignores the content type.

RE The safest way to convince IE to open PDF is to set the 
RE content type to load the file from a url that has the 
RE extension .pdf.

RE Additional hint:
RE   Make shure that your servlet supports Byte range
RE   requests (HTTP 1.1). The acrobat reader sometimes 
RE   uses this. (Have a look at the source for the 
RE   servlet that implements the fileserving for tomcat)

 -Ursprüngliche Nachricht-
 Von: Alex [mailto:[EMAIL PROTECTED]]
 Gesendet: Freitag, 21. Juni 2002 09:37
 An: [EMAIL PROTECTED]
 Betreff: set content type to text/pdf
 
 What can i do so my browser automatically opens the pdf 
 content generated
 by the servlet ?
 Thanks in advance...

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



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




Re: AW: set content type to text/pdf

2002-06-21 Thread Liam Morley

I'm sure there's a better way, but in case there's not, there's always 
mod_rewrite. You could rewrite the url so that /(*).pdf goes to /$1.

Liam Morley


Alex wrote:

Hello Ralph,

  I can't point my browser to a location that ends with .pdf,
  because i have to point it to my servlet, for ex:
  document.location.href=/servlet/Tiparire
  Is there any trick to do this ?

  Alex.
  

Friday, June 21, 2002, 10:44:00 AM, you wrote:

RE MS IE has sometimes his own opinion what to open and 
RE ignores the content type.

RE The safest way to convince IE to open PDF is to set the 
RE content type to load the file from a url that has the 
RE extension .pdf.

RE Additional hint:
RE   Make shure that your servlet supports Byte range
RE   requests (HTTP 1.1). The acrobat reader sometimes 
RE   uses this. (Have a look at the source for the 
RE   servlet that implements the fileserving for tomcat)

  

-Ursprüngliche Nachricht-
Von: Alex [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 21. Juni 2002 09:37
An: [EMAIL PROTECTED]
Betreff: set content type to text/pdf

What can i do so my browser automatically opens the pdf 
content generated
by the servlet ?
Thanks in advance...
  


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



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



  




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




RE: AW: set content type to text/pdf

2002-06-21 Thread Dennis van den Berg

You could also map your servlet to the pattern *.pdf

Dennis.

-Original Message-
From: Liam Morley [mailto:[EMAIL PROTECTED]]
Sent: vrijdag 21 juni 2002 9:57
To: Tomcat Users List
Subject: Re: AW: set content type to text/pdf


I'm sure there's a better way, but in case there's not, there's always 
mod_rewrite. You could rewrite the url so that /(*).pdf goes to /$1.

Liam Morley


Alex wrote:

Hello Ralph,

  I can't point my browser to a location that ends with .pdf,
  because i have to point it to my servlet, for ex:
  document.location.href=/servlet/Tiparire
  Is there any trick to do this ?

  Alex.
  

Friday, June 21, 2002, 10:44:00 AM, you wrote:

RE MS IE has sometimes his own opinion what to open and 
RE ignores the content type.

RE The safest way to convince IE to open PDF is to set the 
RE content type to load the file from a url that has the 
RE extension .pdf.

RE Additional hint:
RE   Make shure that your servlet supports Byte range
RE   requests (HTTP 1.1). The acrobat reader sometimes 
RE   uses this. (Have a look at the source for the 
RE   servlet that implements the fileserving for tomcat)

  

-Ursprüngliche Nachricht-
Von: Alex [mailto:[EMAIL PROTECTED]]
Gesendet: Freitag, 21. Juni 2002 09:37
An: [EMAIL PROTECTED]
Betreff: set content type to text/pdf

What can i do so my browser automatically opens the pdf 
content generated
by the servlet ?
Thanks in advance...
  


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



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



  




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


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