Hi, 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 [mailto:[EMAIL PROTECTED]] >Sent: Wednesday, September 04, 2002 2:57 AM >To: [EMAIL PROTECTED] >Subject: How to get Excel directly started using >response.setContentType(...) from JSP? > >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- >[EMAIL PROTECTED]> >For additional commands, e-mail: <mailto:tomcat-user- >[EMAIL PROTECTED]>
This e-mail, including any attachments, is a confidential business communication, and may contain information that is confidential, proprietary and/or privileged. This e-mail is intended only for the individual(s) to whom it is addressed, and may not be saved, copied, printed, disclosed or used by anyone else. If you are not the(an) intended recipient, please immediately delete this e-mail from your computer system and notify the sender. Thank you.
-- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>