force download on excel file when clicked on
Is there a way to foce download when a linked is click to download a excel file rather than opening into the current browser window. For zip or exe it will automatically force a download of the type. I tried changing the mime types but didn't seem to work. Thanks for any information. Joseph This e-mail, including attachments, may include confidential and/or proprietary information, and may be used only by the person or entity to which it is addressed. If the reader of this e-mail is not the intended recipient or his or her authorized agent, the reader is hereby notified that any dissemination, distribution or copying of this e-mail is prohibited. If you have received this e-mail in error, please notify the sender by replying to this message and delete this e-mail immediately. - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: force download on excel file when clicked on
Joseph Sze [EMAIL PROTECTED] wrote: Is there a way to foce download when a linked is click to download a excel file rather than opening into the current browser window. For zip or exe it will automatically force a download of the type. I tried changing the mime types but didn't seem to work. Thanks for any information. I speak as a newbie here, but I wonder if there is a way to setup struts-config.xml to expect an action that looks something like /whatever.xls, and then map that to a servlet that would create an excel file. I know that Internet Exploiter plays a lot friendlier when the mime type is actually a part of the URL (.xls in this case), so that might be a way. I would like to hear what some of the other more seasoned Struts developers would think of such a concept. If this won't work at all -- my bad! Andy - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]
Re: force download on excel file when clicked on
Am Freitag, 10. Oktober 2003 17:48 schrieb Joseph Sze: Still, it's the MIME type that determines how things are handled. If it helps, I once developed a simple Servlet for solving another guys problem with GZip streams on JSP-INTEREST. For experimental purposes, I added options for overriding the MIME type and changing the Content-Disposition header. It's basically nothing more than a two-hours hack, but if you're interested, you may download the resulting .war file (sources included) from http://www.christianbollmeyer.de/dl?downloadFile=DownloadServlet.war -- Chris. Is there a way to foce download when a linked is click to download a excel file rather than opening into the current browser window. For zip or exe it will automatically force a download of the type. I tried changing the mime types but didn't seem to work. Thanks for any information. Joseph - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]