This week's giveaway is in the Android forum.
We're giving away four copies of Android Security Essentials Live Lessons and have Godfrey Nolan on-line!
See this thread for details.
The moose likes Tomcat and the fly likes Excel file not opening in Tomcat 4.1.29 Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Products » Tomcat
Bookmark "Excel file not opening in Tomcat 4.1.29" Watch "Excel file not opening in Tomcat 4.1.29" New topic
Author

Excel file not opening in Tomcat 4.1.29

Vasudevan Gopalan
Ranch Hand

Joined: Aug 29, 2003
Posts: 67
Hi,
I am using tomcat 4.1.29.When i try to open an excel file from browser it is showing like a text file.Word files are opening properly.I have seen someone posted the same problem in Tomcat forum but i am unable to find the solution for it.Someone please help me on this..
Thanks in Advance.

Regards
Vasudevan
[ January 12, 2004: Message edited by: Vasudevan Gopalan ]
krishnakittu kanth
Greenhorn

Joined: Jan 12, 2004
Posts: 2
please find some other means rather than sticking to 4.1.29.
bye..
cheers.
William Brogden
Author and all-around good cowpoke
Rancher

Joined: Mar 22, 2000
Posts: 12761
    
    5
1. is your browser configured to treat xls files by opening excel?
2. does your web.xml file in the ../conf directory have an entry in the mime-mapping list for "xls" file type? Mine doesn't - so I can't tell you exactly what to use.
Bill
James Laughlin
Greenhorn

Joined: Sep 03, 2004
Posts: 1
Hey all. I just wanted to post an update to this thread because I had the same problem recently and had a hard time finding any information about it anywhere on the web.

I modified my web.xml file to add a mime-mapping element for xls extensions with a mime type of application/msexcel.

I restarted Tomcat and it works great.

Thanks to you all for your assistance.
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Excel file not opening in Tomcat 4.1.29
 
Similar Threads
Basic authentication & showing EXCEL
Opening the excel file multiple times
excel page not opening in a browser
Max. number of connections in Tomcat?
Session validation code