Hello, 

Yes, I had to override the processActionPerform() method indeed :(.
I see the point that you cannot do any postprocessing if the action does its
own forwarding.
However, if the post processing hook is only called if the Action class
returns an ActionForward instance (which is usually the case), I still would
be happy.

Arjan Kok. 


> -----Original Message-----
> From: Mike La Budde [mailto:[EMAIL PROTECTED]]
> Sent: Monday, November 20, 2000 4:44 PM
> To: [EMAIL PROTECTED]
> Subject: Re: postprocessing hook
> 
> 
> I'm assuming you already have your own ActionServlet 
> descendant. I believe 
> you will need to use it to override the 
> processActionPerform() method to 
> add your own post processing hook.
> 
> I'm guessing that there is currently no post processing hook, 
> since that 
> would assume that the request and response are still valid. 
> The current 
> architecture allows struts users to do their own 
> forwarding/redirecting 
> within your Action classes and not return an ActionForward 
> instance (but 
> instead, null).
> 
> HTH,
> 
> Mike
> 
> 
> At 11/20/2000 11:18 AM +0100, you wrote:
> >Hello,
> >
> >Struts contains a general purpose preprocessing hook in the 
> ActionServlet
> >that is called before every action. However, there is no 
> postprocessing hook
> >at the moment. I would like to use the preprocessing and 
> postprocessing hook
> >to display some tracing information to the developer, for 
> example the amount
> >of seconds it took to process the action (we make use of a 
> possibly remote
> >EJB tier). Is it a good idea to add a postprocessing hook, 
> or is there
> >another place in the Struts framework for these kind of things?
> >
> >Thanks, Arjan Kok.
> 

Reply via email to