RE: Downloading a Streamed File

2009-07-24 Thread Martin Gainty
o: user@struts.apache.org > Subject: Re: Downloading a Streamed File > > Timothy Orme wrote: > > I still have the same issue though. Right clicking the link > > doesn't work and the filename is still listed as the action. > > As far as struts is concerned, there

Re: Downloading a Streamed File

2009-07-24 Thread Dale Newfield
Timothy Orme wrote: I'm not sure if theres really a workaround for this, other than writing to disk and linking directly to the file. Or monkeying with the url (and maybe the extensions that map to struts) so that you can make the url of the action end with .../filename.zip . -Dale

Re: Downloading a Streamed File

2009-07-24 Thread Dale Newfield
Timothy Orme wrote: My problem really then, is that my action to make a zip simply takes too long to do its thing, and the browser refuses to wait. I don't know if this'll help you, but you could create and use a modified version of StreamResult that makes many more of the response.addHeader(

Re: Downloading a Streamed File

2009-07-24 Thread Timothy Orme
And some further digging for those who are interested: https://bugzilla.mozilla.org/show_bug.cgi?id=299372#c89 Apparently just a "bug" in firefox, though they have no intentions of fixing it. Another link with more info about it in the wild: http://drupal.org/node/74983 Thanks, Tim Orme Timo

Re: Downloading a Streamed File

2009-07-24 Thread Timothy Orme
Right, I figured that it wasn't a struts specific issue, but thought that I might have been using the wrong content disposition or something along those lines. However, upon further prodding, it seems that this is more an issue of response time with the browser. I found that the behavior I wa

Re: Downloading a Streamed File

2009-07-24 Thread Dale Newfield
Timothy Orme wrote: I still have the same issue though. Right clicking the link doesn't work and the filename is still listed as the action. As far as struts is concerned, there's no difference between a request that's going to be displayed in a browser window and a request that's going to be

Re: Downloading a Streamed File

2009-07-24 Thread Timothy Orme
Hey, Not sure where I got this from, but I've corrected it so that all the properties are in the struts.xml instead of modifying it in the code. I still have the same issue though. Right clicking the link doesn't work and the filename is still listed as the action. Thanks, Tim Dale Newfield

Re: Downloading a Streamed File

2009-07-24 Thread Dale Newfield
Why are you trying to modify the result once it's already running rather than configuring it in your struts.xml? http://struts.apache.org/2.1.6/struts2-core/apidocs/org/apache/struts2/dispatcher/StreamResult.html Note, there's a bug in that documentation that'll be fixed in the next release, w