Thanks for replying Dustin / Wes, I'll see where I get to with this and if I can possibly submit something reusable, I'll certainly do so.
Regards Stuart On 02/05/2009 17:47, "dusty" <dustin_pea...@yahoo.com> wrote: 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 one!? 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: http://www.nabble.com/REST-Plugin-and-PreResultListeners-tp23334431p23348144.html Sent from the Struts - User mailing list archive at Nabble.com. --------------------------------------------------------------------- To unsubscribe, e-mail: user-unsubscr...@struts.apache.org For additional commands, e-mail: user-h...@struts.apache.org