-BEGIN PGP SIGNED MESSAGE-
Hash: SHA1
Uddav,
uddav wrote:
I have put a .xls file in there, and when we open it - it opens in the
browser itself and what it seems to have is junk data in it. (unreadable).
However instead of clicking it to open, if we do Save the target as.. and
save
From: Christopher Schultz [mailto:ch...@christopherschultz.net]
Subject: Re: Excel file in Tomcat Virtual Dir has junk data in it.
I'd bet the problem is newline translation.
It was the MIME type - the version of Tomcat the OP was using had it wrong
(known bug).
- Chuck
It is Version 5.0.27.
uddav wrote:
Hello Everyone,
I have set up a Virtual Directory (Directory Listing) in Tomcat. We use
this to distribute documents and reports. The way we do is put the
documents to be distributed in this directory on the server and all our
user go to this virtual
From: uddav [mailto:adi.upr...@gmail.com]
Subject: Re: Excel file in Tomcat Virtual Dir has junk data in it.
It is Version 5.0.27.
Which is no longer supported. I do seem to recall that the mime-mapping
settings for .xls were incorrect in that version. If you can't upgrade to a
supported
Server version: Apache Tomcat/6.0.18
Server built: Jul 22 2008 02:00:36
Server number: 6.0.18.0
mime-mapping
extensionxls/extension
mime-typeapplication/vnd.ms-excel/mime-type
/mime-mapping
hth
Gregor
--
just because your paranoid, doesn't mean they're not after
Gregor Schneider wrote:
Server version: Apache Tomcat/6.0.18
Server built: Jul 22 2008 02:00:36
Server number: 6.0.18.0
mime-mapping
extensionxls/extension
mime-typeapplication/vnd.ms-excel/mime-type
/mime-mapping
Which by the way, dear OP, is exactly the same as the
From: uddav [mailto:adi.upr...@gmail.com]
Subject: Excel file in Tomcat Virtual Dir has junk data in it.
I have set up a Virtual Directory (Directory Listing)
in Tomcat.
How?
While you're at it, you might want to tell us what version of Tomcat you're
using, and perhaps the JVM vendor and
uddav wrote:
[...]
In the conf directory of your Tomcat installation is a file called
web.xml.
That file contains a section which tells Tomcat about the correspondence
between file extensions and their mime type.
Check if it contains a section like this one :
mime-mapping