> From: Antony GUILLOTEAU [mailto:[EMAIL PROTECTED] > Subject: Tomcat 5.0.28 : mime type > > I'm using Tomcat 5.0.28 and when I try to access to word > documents, excel documents it is interpreted like binary > stream and not like the correct application (Word, Excel). > > I've declared mime-mapping int the conf/web.xml file and in > the web.xml file of my application.
You shouldn't have to add any mapping for msword (.doc) files - that's already in conf/web.xml as downloaded. I added this for .xls: <mime-mapping> <extension>xls</extension> <mime-type>application/msexcel</mime-type> </mime-mapping> restarted Tomcat (5.5.12, in my case), and both IE and Firefox start up my spreadsheet program (OpenOffice), although IE prompts me to do so. You should only put the mapping in the one place; don't know what happens if you update both web.xml files. - Chuck THIS COMMUNICATION MAY CONTAIN CONFIDENTIAL AND/OR OTHERWISE PROPRIETARY MATERIAL and is thus for use only by the intended recipient. If you received this in error, please contact the sender and delete the e-mail and its attachments from all computers. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]