struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From dusty <>
Subject Re: REST Plugin and PreResultListeners
Date Sat, 02 May 2009 16:47:38 GMT

Are you registering the listener in the action or interceptor.  Does it
matter or both fail?  

The REST plugin needs a steward(stuart).  Don (original author) has been too
busy to work on it and I think most of the current committers are happy with
the current REST function or are working on other things.  Maybe you are the

Stuart Ellidge wrote:
> Hi all,
> In our application an interceptor registers a PreResultListener to perform
> some common calculation prior to rendering the page. The reason this is
> handled in a PreResultListener is that the action may well modify the
> basis for the calculation and we need to include the most recent result of
> it in the display.
> This all worked very nicely with the REST plugin until we came to
> implement a JSON request... unfortunately, it appears that the JSON result
> is rendered directly directly to the Response output stream, prior to the
> execution of any PreResultListeners.
> I was wondering if anyone else had encountered this issue and, if so, how
> they had resolved it. If not, I would be happy enough to implement an
> alternative ContentTypeHandlerManager that could fire off the
> PreResultListeners if need be; however, I'm not sure how to retrieve the
> registered listeners and how to subsequently remove them after execution!
> Thanks in advance for any help
> Regards
> Stuart

View this message in context:
Sent from the Struts - User mailing list archive at

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message