tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From <fachhochschule.burkh...@daimlerchrysler.com>
Subject RE: Excel Mime problem
Date Mon, 09 Feb 2004 07:17:39 GMT




Hi Pavan,
maybe the thing I've done for a style sheet can help you. The style sheet
is a JSP file with the ending .jsp. And in it I'm specifying
<%@page contentType="text/css" %>
so I can refer to it from any web page by
<link rel="stylesheet" type="text/css" href="/path/to/style.jsp">
because the browser is getting the content type text/css.

Maybe you can do sth similar when creating the Excel.

Or, otherwise, just put the excel somewhere accessible and redirect the
browser there from a servlet or JSP.

Regards
B. Burkhart



                                                                                         
                          
                      pavan.k@tcs.com                                                    
                          
                                               To:      tomcat-user@jakarta.apache.org   
                          
                      02/07/2004 11:03         cc:                                       
                          
                      AM                       Subject: RE: Excel Mime problem           
                          
                      Please respond                                                     
                          
                      to tomcat-user                                                     
                          
                                                                                         
                          
                                                                                         
                          
                                                                                         
                          
                                                                                         
                          





i did that also..but invain...

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

                                                                           
 "Allistair Crossley"                                                      
 <Allistair.Crossley@QAS.com>                                              
                                                                        To 
                                           "Tomcat Users List"             
 02/06/2004 07:07 AM                       <tomcat-user@jakarta.apache.org 
                                           >                               
                                                                        cc 
          Please respond to                                                
         "Tomcat Users List"                                       Subject 
  <tomcat-user@jakarta.apache.org>         RE: Excel Mime problem          
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           
                                                                           





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


ForwardSourceID:NT0000519E     (See attached file:
InterScan_Disclaimer.txt)
---------------------------------------------------------------------
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