tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allistair Crossley" <Allistair.Cross...@QAS.com>
Subject RE: Excel Mime problem
Date Fri, 06 Feb 2004 12:07:10 GMT
add this to the tomcat_home/conf/web.xml file

<mime-mapping>
  <extension>xls</extension>
  <mime-type>application/msexcel</mime-type>
</mime-mapping>

this is why I asked about your URL .. you are using tomcat as a web server and web servers
normally handle mime types

-----Original Message-----
From: pavan.k@tcs.com [mailto:pavan.k@tcs.com]
Sent: 06 February 2004 11:46
To: Tomcat Users List
Subject: RE: Excel Mime problem



i see the excel being created.. 
i can open the same excel from where it is created.. 

there is no question abt the file creation bcoz i can see the contents 
in IE but not as a excel opening in IE.. 

http://localhost:8000/test.xls 
i use window.open("http://localhost:8000/test.xls"); 

this opens the excel contents in the browser juss like a text file ..i mean no excel 
embedded in that.. 

but i copy the created excel to another folder and i create a html page 
haviong simple code of window,open("test.xls") 
then it IE opens the same contents as a Excel embedded within IE 

Pavan Kumar
Tata Consultancy Services
Mailto: pavan.k@tcs.com
Website: http://www.tcs.com


<FONT SIZE=1 FACE="VERDANA,ARIAL" COLOR=BLUE> 
-------------------------------------------------------
QAS Ltd.
Developers of QuickAddress Software
<a href="http://www.qas.com">www.qas.com</a>
Registered in England: No 2582055
Registered in Australia: No 082 851 474
-------------------------------------------------------
</FONT>


---------------------------------------------------------------------
To unsubscribe, e-mail: tomcat-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: tomcat-user-help@jakarta.apache.org


Mime
View raw message