AW: set content type to text/pdf

2002-06-21 Thread Ralph Einfeldt
MS IE has sometimes his own opinion what to open and ignores the content type. The safest way to convince IE to open PDF is to set the content type to load the file from a url that has the extension .pdf. Additional hint: Make shure that your servlet supports Byte range requests (HTTP

AW: set content type to text/pdf

2002-06-21 Thread Ralph Einfeldt
Betreff: AW: set content type to text/pdf The safest way to convince IE to open PDF is to set the content type to load the file from a url that has the extension .pdf. -- 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 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

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,

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

AW: AW: set content type to text/pdf

2002-06-21 Thread Ralph Einfeldt
/servlet-name url-pattern*.pdf/url-pattern /servlet-mapping -Ursprüngliche Nachricht- Von: Alex [mailto:[EMAIL PROTECTED]] Gesendet: Freitag, 21. Juni 2002 09:57 An: Tomcat Users List Betreff: Re: AW: set content type to text/pdf I can't point my browser to a location that ends

Re: AW: AW: set content type to text/pdf

2002-06-21 Thread Alex
Hello Ralph, I've modified web.xml from ROOT\WEB-INF, and i've added something like this: servlet-mapping servlet-nameTiparire/servlet-name url-patternTiparire.pdf/url-pattern /servlet-mapping My servlet is called Tiparire.class and is

AW: AW: AW: set content type to text/pdf

2002-06-21 Thread Ralph Einfeldt
: AW: set content type to text/pdf But, when i start tomcat, it says: ERROR reading java.io.ByteArrayInputStream@4e280c At Line 11 /web-app/servlet-mapping/ What is wrong ? -- To unsubscribe, e-mail: mailto:[EMAIL PROTECTED] For additional commands, e-mail

Re: AW: AW: set content type to text/pdf

2002-06-21 Thread Liam Morley
You might need to declare the servlet from within a servlet element like this as well: |servlet-mapping servlet-nameTiparire/servlet-name url-patternTiparire.pdf/url-pattern /servlet-mapping servlet servlet-nameTiparire/servlet-name servlet-classTiparire/servlet-class /servlet |

Re[2]: AW: AW: set content type to text/pdf

2002-06-21 Thread Alex
Hello Liam, I've inserted into the web.xml file these lines: servlet-mapping servlet-nameTiparire/servlet-name url-patternTiparire.pdf/url-pattern /servlet-mapping servlet servlet-nameTiparire/servlet-name

Re: Re[2]: AW: AW: set content type to text/pdf

2002-06-21 Thread Constantin Wolber
Freitag, 21. Juni 2002 11:10 schrieb Alex: Tiparire.class is not part of any package. Tomcat starts ok, but, when i'm trying to access the location servlet/Tiparire.pdf, it says: Hi, cause your using a servlet Mapping and your servlet is in the ROOT Context you have to

Re: AW: AW: set content type to text/pdf

2002-06-21 Thread Ben Walding
Digging back into the dark cavern that is trying to get IE to work with a spec complying application (from which I have emerged and no longer care about)... I believe you might be able to go http://server:8080/servlet/pdfservlet?thisisnotanarg.pdf This may confuse IE into giving you