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 response before calling you action class?

2) Does calling flush() on the response output stream cause the response to be 
sent? I kind of think it doesn't, but what exactly does flush() do in this 
instance.

AND 

3)  Does struts close the response output stream for me?     




 --- On Mon 01/23, Frank W. Zammetti < [EMAIL PROTECTED] > 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 
describe), you should return null from execute().  This indicates toStruts that 
you have taken responsibility for rendering the response andno forward should 
take place, the response should simply be returned as itexists at that point.-- 
Frank W. ZammettiFounder and Chief Software ArchitectOmnytex 
Technologieshttp://www.omnytex.comAIM: fzammettiYahoo: fzammettiMSN: [EMAIL 
PROTECTED] Mon, January 23, 2006 1:55 pm, [EMAIL PROTECTED] said:>> 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> the response stream from 
the response object I get in the execute method> and start writing to it.  If 
so, what becomes of the forward I'm supposed> to 
return.>> Feel free to inform me of my misuse of the platform if that's the 
case.>> _______________________________________________> Join Excite! - 
http://www.excite.com> The most personalized portal on the Web!>>>> 
---------------------------------------------------------------------> To 
unsubscribe, e-mail: [EMAIL PROTECTED]> For additional commands, e-mail: [EMAIL 
PROTECTED]>>

_______________________________________________
Join Excite! - http://www.excite.com
The most personalized portal on the Web!



---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to