struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Greg Lindholm <greg.lindh...@gmail.com>
Subject Re: NoResult - write response in the Action
Date Wed, 04 Nov 2009 14:42:21 GMT
Thanks that did the trick.

Where did you learn about the NONE result? Is it documented somewhere?

On Tue, Nov 3, 2009 at 5:56 PM, Haroon Rafique
<haroon.rafique@utoronto.ca>wrote:

> 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
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message