struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Haroon Rafique <haroon.rafi...@utoronto.ca>
Subject Re: NoResult - write response in the Action
Date Tue, 03 Nov 2009 22:56:18 GMT
On Today at 5:13pm, GL=>Greg Lindholm <greg.lindholm@gmail.com> wrote:

GL> I have a situation where I want to fully handle the result in the Action
GL> including writing the response to the HttpServletResponse.
GL> 


return ActionSupport.NONE?


GL> 
GL> What's the best way to handle this so there is no further results processing
GL> after the execute() method ends?
GL> 
GL> Is there a way to disable results processing from within the action's
GL> execute() method?
GL> Or, should I write a "NoResult" Result that does nothing?
GL> 
GL> I know I could write a custom Result and move all the logic from the action
GL> to the custom result but it would be a PITA and make this situation much
GL> more complex then it needs to be. I would have to split the logic in the
GL> action in an artificial way and expose a bunch of internal variables just so
GL> they could be passed to the Result and then I would have to duplicate logic
GL> that is already available in the action super classes, etc in the result.
GL> 

--
Haroon Rafique
<haroon.rafique@utoronto.ca>


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


Mime
View raw message