Oops, I forgot there are two parts to this, you should set two headers Content-Type = application/download Content-Disposition = attachment; filename=foo.bar
I didn't look back through the thread to see if you were also setting content-type. If so, add a test case to your JIRA (WW-2711?). -Wes On Mon, 2008-07-07 at 18:59 -0700, Struts Two wrote: > Even afterI extended the StreamResult to be able to set the > content-desposition dynamically, Internet explorer would open the file in a > separate browser while firefox was prompting with the save/open dialog. > However, the issue was fixed when I directly got the httpresponse and set the > header there. > > > ----- Original Message ---- > From: Wes Wannemacher <[EMAIL PROTECTED]> > To: Struts Users Mailing List <user@struts.apache.org> > Sent: Monday, July 7, 2008 4:19:02 PM > Subject: Re: [S2] File download save dialog > > Although Chris's solution works, I've always been partial to setting > content-disposition to attachment. > > I can't tell you off the top of my head the struts-y way to do it, but > this is what it's meant for. > > -Wes > > > __________________________________________________________________ > Yahoo! Canada Toolbar: Search from anywhere on the web, and bookmark your > favourite sites. Download it now at > http://ca.toolbar.yahoo.com. > > > --------------------------------------------------------------------- > 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]