It's pretty simple, you set the content type to whatever you think/hope the client can handle. If their browser understands "application/vnd.ms-excel", the data written will be opened in Excel.
See: http://www.javaworld.com/javaworld/javatips/jw-javatip94.html That article describes how to do it with a servlet. With Struts, just write out the stream and return null from your action. -- James Mitchell Software Engineer / Open Source Evangelist EdgeTech, Inc. 678.910.8017 AIM: jmitchtx ----- Original Message ----- From: "Stefan Groschupf" <[EMAIL PROTECTED]> To: "Struts Users Mailing List" <[EMAIL PROTECTED]> Sent: Wednesday, August 25, 2004 9:46 AM Subject: download binary content > Hi, > can someone point me to a resource that describe how to realize a > dowanload action? > Do I can write to the response object with out forwarding? > > Thanks for any hints. > Stefan > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] > > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]