This week's book giveaway is in the Other Languages forum.
We're giving away four copies of Functional Reactive Programming and have Stephen Blackheath and Anthony Jones on-line!
See this thread for details.
Win a copy of Functional Reactive Programming this week in the Other Languages forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Excel opening problem in Tomcat 5.0

 
Indrayani Bhoir
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

regards,

indu
 
William Brogden
Author and all-around good cowpoke
Rancher
Posts: 13074
6
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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.

Bill
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic