This week's book giveaway is in the Design forum.
We're giving away four copies of Building Microservices and have Sam Newman on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Excel opening problem in Tomcat 5.0 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Building Microservices this week in the Design forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Excel opening problem in Tomcat 5.0" Watch "Excel opening problem in Tomcat 5.0" New topic

Excel opening problem in Tomcat 5.0

Indrayani Bhoir

Joined: Dec 02, 2002
Posts: 21
Hi All,

i am working on web application deployed on Tomcat 5.0. i have jsp page in which link for excel sheet is there.
<a href="Chain.xls">Chain</a>

when i click on this link ..bin junk data is displayed in browser in place of excel sheet data. If we open html page containing same link direactly it works fine. but after deploying it as webapplication it not working.


William Brogden
Author and all-around good cowpoke

Joined: Mar 22, 2000
Posts: 13007
The default web.xml file has a bunch of <mime-mapping> entries giving the mime-type to be associated with each file extension when served by the default servlet.

Probably you need to add one to associate xls with whatever correct mime-type for excel is.

Have you checked out Aspose?
subject: Excel opening problem in Tomcat 5.0
It's not a secret anymore!