tomcat-users mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Shapira, Yoav" <>
Subject RE: How to get Excel directly started using response.setContentType(...) from JSP?
Date Wed, 04 Sep 2002 12:58:56 GMT
Both of these depend on your user's configuration to some extent.  For
example, I personally have the .xls extension configured to bring up the
question (save or open).

Be careful not to forget that handling of responses based on content
type or extension is completely controllable by the user, who can assign
an arbitrary application to each extension.

Yoav Shapira
Millennium ChemInformatics

>-----Original Message-----
>From: Zsolt Koppany []
>Sent: Wednesday, September 04, 2002 2:57 AM
>Subject: How to get Excel directly started using
>response.setContentType(...) from JSP?
>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
>I can use response.setContentType(...) from JSP too, but I was not able
>a JSP path to end with "xls", thus when I start (click on a link) the
>file, first I'm asked whether I want to open the file directly or just
>How could I get Excel started without any furher questions like it is
>from a servlet?
>To unsubscribe, e-mail:   <mailto:tomcat-user-
>For additional commands, e-mail: <mailto:tomcat-user-

View raw message