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
<[EMAIL PROTECTED] 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



                                                                                       
                             
                      [EMAIL PROTECTED]                                                
                               
                                               To:      [EMAIL PROTECTED]              
                
                      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: [EMAIL PROTECTED]
Website: http://www.tcs.com

                                                                           
 "Allistair Crossley"                                                      
 <[EMAIL PROTECTED]>                                              
                                                                        To 
                                           "Tomcat Users List"             
 02/06/2004 07:07 AM                       <[EMAIL PROTECTED] 
                                           >                               
                                                                        cc 
          Please respond to                                                
         "Tomcat Users List"                                       Subject 
  <[EMAIL PROTECTED]>         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: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED]
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: [EMAIL PROTECTED]
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: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]


ForwardSourceID:NT0000519E     (See attached file:
InterScan_Disclaimer.txt)
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]
DISCLAIMER: The information contained in this message is intended only and solely for 
the addressed individual or entity indicated in this message and for the exclusive use 
of the said addressed individual or entity indicated in this message (or responsible 
for delivery
of the message to such person) and may contain legally privileged and confidential 
information belonging to Tata Consultancy Services. It must not be printed, read, 
copied, disclosed, forwarded, distributed or used (in whatsoever manner) by any person 
other than the addressee. 
Unauthorized use, disclosure or copying is strictly prohibited and may constitute 
unlawful act and can possibly attract legal action, civil and/or criminal. The 
contents of this message need not necessarily reflect or endorse the views of Tata 
Consultancy Services on any subject matter.
Any action taken or omitted to be taken based on this message is entirely at your risk 
and neither the originator of this message nor Tata Consultancy Services takes any 
responsibility or liability towards the same. Opinions, conclusions and any other 
information contained in this message
that do not relate to the official business of Tata Consultancy Services shall be 
understood as neither given nor endorsed by Tata Consultancy Services or any affiliate 
of Tata Consultancy Services. If you have received this message in error, you should 
destroy this message and may please notify the sender by e-mail. Thank you.

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to