Re: returning a non-html file as response

2006-01-23 Thread Max Cooper
On Mon, 2006-01-23 at 16:27 -0800, Craig McClanahan wrote: > On 1/23/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > > Craig McClanahan wrote: > > [snip] > > > > Calling flush() doesn't necessarily cause the *entire* response to be > > > sent, because you might still be creating more output.

Re: returning a non-html file as response

2006-01-23 Thread Frank W. Zammetti
A compression filter does exactly that, that's the reason it occurred to me :) I remember facing *precisely* that problem a few months back with the JWP sample app. I know I solved it, but I guess I had forgotten the root cause :) Frank Craig McClanahan wrote: On 1/23/06, Frank W. Zammetti

Re: returning a non-html file as response

2006-01-23 Thread Craig McClanahan
On 1/23/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > Craig McClanahan wrote: [snip] > > Calling flush() doesn't necessarily cause the *entire* response to be > > sent, because you might still be creating more output. But it *does* > > cause the HTTP headers, and any output content you've w

Re: returning a non-html file as response

2006-01-23 Thread Frank W. Zammetti
Frank W. Zammetti wrote: Craig McClanahan wrote: Let's try to be a bit more helpful here :-). No object :) Err, no OBJECTION! D'oh :) Frank - To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMA

Re: returning a non-html file as response

2006-01-23 Thread Frank W. Zammetti
Craig McClanahan wrote: Let's try to be a bit more helpful here :-). No object :) The only thing Struts itself might do is try to set the no-cache headers if you have them configured. It does not, by itself, ever write to the response stream or response print writer. That's the responsibili

Re: returning a non-html file as response

2006-01-23 Thread Craig McClanahan
On 1/23/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > Here comes my unhelpful response for the day... > Let's try to be a bit more helpful here :-). > [EMAIL PROTECTED] wrote: > > > > I've got the thing to work returning null as my forward. That leaves a > couple of questions though. > > >

Re: returning a non-html file as response

2006-01-23 Thread Michael Jouravlev
On 1/23/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > Here comes my unhelpful response for the day... > > [EMAIL PROTECTED] wrote: > > > > I've got the thing to work returning null as my forward. That leaves a > > couple of questions though. > > > > 1) Does struts write anything to the respo

Re: returning a non-html file as response

2006-01-23 Thread Frank W. Zammetti
> wrote: From: Frank W. Zammetti [mailto: [EMAIL PROTECTED] To: [EMAIL PROTECTED] Cc: user@struts.apache.org Date: Mon, 23 Jan 2006 14:00:15 -0500 (EST) Subject: Re: returning a non-html file as response Hi,If you are writing the response from an Action (which yes, you can do asyou desc

Re: returning a non-html file as response

2006-01-23 Thread [EMAIL PROTECTED]
.apache.org Date: Mon, 23 Jan 2006 14:00:15 -0500 (EST) Subject: Re: returning a non-html file as response Hi,If you are writing the response from an Action (which yes, you can do asyou describe), you should return null from execute(). This indicates toStruts that you have taken responsibility f

Re: returning a non-html file as response

2006-01-23 Thread Laurie Harper
[EMAIL PROTECTED] wrote: I need to return a differnt kind of resposne type. Its an excel file if your curious. I think I understand how to do this with a plain servlet, but I am trying to fit it into the structure of the struts architecture. Can someone explain to me how to do this? In particu

Re: returning a non-html file as response

2006-01-23 Thread Frank W. Zammetti
Hi, If you are writing the response from an Action (which yes, you can do as you describe), you should return null from execute(). This indicates to Struts that you have taken responsibility for rendering the response and no forward should take place, the response should simply be returned as it

returning a non-html file as response

2006-01-23 Thread [EMAIL PROTECTED]
I need to return a differnt kind of resposne type. Its an excel file if your curious. I think I understand how to do this with a plain servlet, but I am trying to fit it into the structure of the struts architecture. Can someone explain to me how to do this? In particular, can I just grab t