Re: [S2] File download save dialog

2008-07-07 Thread Jeromy Evans
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

Re: [S2] File download save dialog

2008-07-07 Thread Wes Wannemacher
owever, 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 > Sent: Monday, July 7, 2008 4:19:02 PM > Subject: Re: [S2]

Re: [S2] File download save dialog

2008-07-07 Thread Struts Two
there. - Original Message From: Wes Wannemacher <[EMAIL PROTECTED]> To: Struts Users Mailing List 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 t

Re: [S2] File download save dialog

2008-07-07 Thread Wes Wannemacher
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 On Mon, 2008-07-07 at 11:31 -0700, Chris Pratt wrote: > One way is to set the content

Re: [S2] File download save dialog

2008-07-07 Thread Struts Two
. - Original Message From: Chris Pratt <[EMAIL PROTECTED]> To: Struts Users Mailing List Sent: Monday, July 7, 2008 2:31:08 PM Subject: Re: [S2] File download save dialog One way is to set the content type of the downloaded item to something the browser doesn't know how to handle i

Re: [S2] File download save dialog

2008-07-07 Thread Chris Pratt
One way is to set the content type of the downloaded item to something the browser doesn't know how to handle itself, like application/octet-stream (*Chris*) On Mon, Jul 7, 2008 at 10:21 AM, Struts Two <[EMAIL PROTECTED]> wrote: > I have an action class that downloads a file from db2 database. H

[S2] File download save dialog

2008-07-07 Thread Struts Two
I have an action class that downloads a file from db2 database. However; when the download occurs, the file is displayed in the browser. I would like to have the user prompted with the save/open dialog. I was wondering what I am missing here. Below are my configuration and action class for the f