You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by Christian Burger <Ch...@puma.com> on 2003/11/10 12:22:41 UTC

Action Class: Print into respone

Hello,

I want to generate on the fly data which I want to print into the response 
stream. This is not the problem: The poblem is that any Struts Action 
shall return with an ActionForward instance. 
Yes, I could generate a temporary file in which I would print. I could 
furthermore create an ActionForward instance which points to that file. 
But later on I would have to take care to clean up, etc.

Somebody has an idea?

best regards
Christian

_________________________________________________________________
Please be advised that the information contained herein is confidential and intended only for use by the individual stated above. If you are not the named recipient, you are hereby notified that any disclosure, distribution, dissemination, or copying is prohibited. If this information has been directed to you in error, please contact the sender immediately at the telephone number listed above.

RE: Action Class: Print into respone

Posted by Andrew Hill <an...@gridnode.com>.
<snip src="javadoc for Action class">
Return an ActionForward instance describing where and how control should be
forwarded, or null if the response has already been completed.
</snip>

A quick glance at the javadocs will show that you need only to return null
from your action instead of an ActionForward.

-----Original Message-----
From: Christian Burger [mailto:Christian.Burger@puma.com]
Sent: Monday, 10 November 2003 19:23
To: struts-user@jakarta.apache.org
Subject: Action Class: Print into respone


Hello,

I want to generate on the fly data which I want to print into the response
stream. This is not the problem: The poblem is that any Struts Action
shall return with an ActionForward instance.
Yes, I could generate a temporary file in which I would print. I could
furthermore create an ActionForward instance which points to that file.
But later on I would have to take care to clean up, etc.

Somebody has an idea?

best regards
Christian

_________________________________________________________________
Please be advised that the information contained herein is confidential and
intended only for use by the individual stated above. If you are not the
named recipient, you are hereby notified that any disclosure, distribution,
dissemination, or copying is prohibited. If this information has been
directed to you in error, please contact the sender immediately at the
telephone number listed above.


---------------------------------------------------------------------
To unsubscribe, e-mail: struts-user-unsubscribe@jakarta.apache.org
For additional commands, e-mail: struts-user-help@jakarta.apache.org