tomcat-users mailing list archives

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

I can get Excel directly started from a servlet using two things:
1. response.setContentType("application/");
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 
How could I get Excel started without any furher questions like it is possible 
from a servlet?


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

View raw message