Opening Excel sheet in Excel Application instead of browser

Hi,

I need to open an excel sheet from a JSP. When i click the link it opens a pop-up which asks open/save. This is fine. but when i click open it opens the excel sheet in the IE itself. I want the excel sheet to be opened using MS Excel Application. This is the piece of code i have used:

response.setHeader("Content-Disposition", "attachment;filename="+ displayFileName);

Also the pop-up does not show the "displayFileName" as set by me but some other name.

Please help me out regarding this!

Thanks in Advance!!!

[552 byte] By [Gayathri@CTSa] at [2007-11-26 17:46:27]
# 1
I think that for that you have to use java with activeX http://www.javaworld.com/javaworld/jw-09-1996/jw-09-blundon.htmlor if possible use the runtime library to call the excel executable and send it arguments.MeTitus
Me_Titusa at 2007-7-9 0:14:27 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...
# 2
Sorry I didn't ready it right...What I said before cannot help you, because that would run on the server...MeTitus
Me_Titusa at 2007-7-9 0:14:27 > top of Java-index,Enterprise & Remote Computing,Web Tier APIs...