Hi, 

Try adding a mapping for .pdf (if it's not there) into tomcat_home/conf/web.xml 

It's possible if you are using a servlet to deliver the file, that the response 
ContentType is not the correct one. If you use RequestDispatcher.include at some point 
while processing the request the default mime-type will be used (text/plain), unless 
you change the response type in the servlet that does the has the include. 

Hope it helps

-reynir




> -----Original Message-----
> From: Carlos [mailto:[EMAIL PROTECTED] 
> Sent: 11. j�n� 2003 16:06
> To: 'Tomcat-User ([EMAIL PROTECTED])'
> Subject: Mimetype settings for Tomcat???
> 
> 
> Hi Forum,
> Is there a setting for tomcat that I must activate in order 
> to use pdf files?  The application/pdf mime type appears in 
> the configuration for the web server (Apache, pot 80).  I am 
> trying to upload a pdf file with a servlet running in Tomcat 
> (port 8080) but the file is uploaded as a text file rather 
> than pdf.  When I try to open the uploaded file, Acrobat is 
> not launched and I just see the text of the file.  On the 
> other hand, if I upload the same file via FTP (binary), 
> Acrobat is launched and can view the file very well.
> 
> Thanks in advance for your response
> 
> 

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

Reply via email to