Re: [s2] Stream Result - no content length

2008-09-09 Thread Greg Lindholm
DNewfield wrote: > > If you do not specify the content length in the stream result, your > stream will be requested twice (each request is required to provide an > independent stream -- a frequent source of bugs for people that don't > realize it), one of which will be read through it's entir

Re: [struts] [s2] Stream Result - no content length

2008-09-09 Thread Dale Newfield
Greg Lindholm wrote: Your statement caused me to panic as my code was not prepared to return multiple independent streams and I'm not setting Content Length. I swear I didn't make this up, as I clearly recall fighting these bugs myself...but you're right, as I cannot currently put my finger on

Re: [struts] [s2] Stream Result - no content length

2008-09-09 Thread Greg Lindholm
DNewfield wrote: > > In case it's there and I'm just failing to find it, or in case this > changes (back again?) in the future, is there any reason not to put your > "new FileInputStream(...)" call in the action getter that returns the > InputStream? > That wouldn't work in the case I'm dea