However, If tomcat is serving the content, the correct headers must be
sent, especially if it is being sent through a servlet.
If it is really a static file, you should do as was mentioned, but if
you are sending it through a servlet, you will need to set the
appropriate Content-Type header, and I can't remember how that is done,
but I know that it must be done.
It could be that tomcat isn't setting that header correctly even when it
is not sent through a servlet, and that is probably what you are
experiencing. I'm just validating your issue here so you know you're not
crazy, and that it is a valid issue. I've experienced it before, but I
wasn't the developer that had to solve the problem, so I can't help you
much more than that.
Daniel Gibby
Bruno.Melloni@(protected):
>Wouldn't you just have a URL link to the actual files in your HTML? The browser should be smart enough to open up the appropriate application and display it, since it will recognize its extension/mime-type.
>
>bruno
>
>-----Original Message-----
>From: ext Vitor Buitoni [mailto:vitor.buitoni@(protected)]
>Sent: Monday, January 12, 2004 10:07 AM
>To: Tomcat Users List
>Subject: Re: How to serve static EXCEL or POWERPOINT files from Tomcat ?
>
>
>Hi,
>
>Probably your browser is misconfigured. I don't think this is a tomcat
>issue.
>Check the file type associations in your browser and make sure that xls
>files are configured to be opened by msexcel.
>Also check the .doc file association, if it is opening properly, it
>should be configured to be opened by msword.
>
>Vitor
>
>Enrique MARTIN wrote:
>
>
>
>>Hi,
>>
>>I am trying to serve .xls and .ppt files from tomcat so that the browser
>>opens the right application (excel and powerpoint respectively) . What I
>>obtain instead is that the byte content is sent by the web server and this
>>content is then interpreted as text by the browser.
>>For the .doc files, on the other hand, I have the desired behavior: word
>>opens.
>>
>>Does anybody know how to obtain from tomcat this behavior?
>>
>>Thanks,
>>Enrique.
>>
>>
>>
>>
>>
>
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
>For additional commands, e-mail: tomcat-user-help@(protected)
>
>
>---------------------------------------------------------------------
>To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
>For additional commands, e-mail: tomcat-user-help@(protected)
>
>
---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@(protected)
For additional commands, e-mail: tomcat-user-help@(protected)