The result has already been rendered after invoke() has been called.

PreResultListener is where to look--although I don't as that would work either. 
I think both solutions are sub-optimal and not worth it.

--- On Wed, 6/18/08, Lukasz Lenart <[EMAIL PROTECTED]> wrote:

> From: Lukasz Lenart <[EMAIL PROTECTED]>
> Subject: Re: default result name other than SUCCESS?
> To: "Struts Users Mailing List" <user@struts.apache.org>
> Date: Wednesday, June 18, 2008, 12:48 PM
> Hi,
> 
> 2008/6/18 Chris Pratt <[EMAIL PROTECTED]>:
> > I'm not sure if the work-around will work. 
> Looking at the code, it
> > doesn't appear that changing the result type after
> the action has
> > executed has any effect.
> 
> Did you already implement it? Could you show the code?
> It should be the last interceptor in the stack.
> 
> my snippet for intrecept(ActionInvocation invocation)
> 
> String result = invocation.invoke();
> if (Action.SUCCESS.equals(result)) {
>     result = LIST;
> }
> return result;
> 
> 
> Regards
> -- 
> Lukasz
> http://www.lenart.org.pl/
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: [EMAIL PROTECTED]
> For additional commands, e-mail:
> [EMAIL PROTECTED]

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

Reply via email to