add a header "Content-Disposition attachment; filename=myFile.xml" using response.addHeader()
> -----Original Message----- > From: Søren Blidorf [mailto:[EMAIL PROTECTED] > Sent: Wednesday, December 06, 2006 4:56 PM > To: Struts Users Mailing List > Subject: OT: file download without opening a window > > > Does anybody know how to make a form button, that starts > downloading myFile.xml > > What I want is to make an onclick = "Save target as" > > > Med venlig hilsen > > Søren Blidorf > Nolas Consulting > Web: http://www.nolas.dk > Mobil: +45 61676513 > --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]