tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Allistair Crossley" <>
Subject RE: Excel Mime problem
Date Fri, 06 Feb 2004 11:20:53 GMT
What happens if you type the URL of the XLS directly into IE?

Does Excel boot up in this case? IE should automatically recognise the .xls extension on the
file. If it does not then you probably need to look at your IE settings.

When you say the contents of the xls are printed to screen do you mean that BINARY excel is
printed OR do you mean that you have created a CSV comma separated format file and saved that
with a .XLS extension and that is what you get.

The"", "windowName") should work IF you
have the test.xls on the file system and the URL is correct. Try the absolute path instead
of relative also...

-----Original Message-----
From: []
Sent: 06 February 2004 10:51
To: Tomcat Users List
Subject: RE: Excel Mime problem


let me clarify..i generate a excel file by some servlet when the user clicks a button on the
and that i place in the root directory..when the refreshes(after the user hits the button),i
want to open 
a window of the browser expecting that IE will open that in a excel embedded in the browser..

but IE is openeing that as a text.. 

so where should i keep the content type code....iam using a",,.,,/../test.xls")

i dont want to open a jsp in excel 

Pavan Kumar
Tata Consultancy Services

"Allistair Crossley" <> 
02/06/2004 05:02 AM 
Please respond to
"Tomcat Users List" <>

To"Tomcat Users List" <> 
SubjectRE: Excel Mime problem

I've just done this today! :) The following JSP boots up in need to set the content
type before ANYTHING else happens with the output stream

response.addHeader("Content-Disposition", "attachment;filename=myExcelTest.xls");



-----Original Message-----
From: []
Sent: 06 February 2004 09:54
To: Tomcat Users List
Subject: Excel Mime problem

hi there, 

iam using tomcat 5 version..i  have a requirement 
where my jsp will generate a excel sheet and places in the server directory.. 
but the problem is when i open the excel thru a java script from a browser window,i actually
get the 
excel in text format on the browser itself.. 

i tested the same excel sheet using a static html page,it opens in excel format within the


are theere any specific mime type settings to be set..i already tried with application/

any help is appreciated 

Pavan Kumar
Tata Consultancy Services

QAS Ltd.
Developers of QuickAddress Software
<a href=""></a>
Registered in England: No 2582055
Registered in Australia: No 082 851 474

To unsubscribe, e-mail:
For additional commands, e-mail:


To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message