tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Zsolt Koppany <zkopp...@web.de>
Subject How to get Excel directly started using response.setContentType(...) from JSP?
Date Wed, 04 Sep 2002 06:57:22 GMT
Hi,

I can get Excel directly started from a servlet using two things:
1. response.setContentType("application/vnd.ms-excel");
2. the servlet path ends with result.xls (like /servlet/abc/result.xls?p=1)

I can use response.setContentType(...) from JSP too, but I was not able to use 
a JSP path to end with "xls", thus when I start (click on a link) the JSP 
file, first I'm asked whether I want to open the file directly or just to 
download.
How could I get Excel started without any furher questions like it is possible 
from a servlet?

Zsolt

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


Mime
View raw message