struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Dave Newton <davelnew...@gmail.com>
Subject Re: Call a function after invocation but before jsp rendering
Date Wed, 15 Feb 2012 20:54:12 GMT
On Wed, Feb 15, 2012 at 3:52 PM, Markus Demetz wrote:

> to be concrete, I want to call a createTitle() method which is common for
> all my actions (extending BaseAction with a default implementation of
> createTitle()), but when I use an Interceptor for that and call it after
> the action invocation, the JSP has already been rendered. So my question
> is, at which point is the JSP rendered? can I do something between?
>

Yes, your interceptor can use a PreResultListener to wedge itself
in-between the invocation and render.

Dave

Mime
  • Unnamed multipart/alternative (inline, None, 0 bytes)
View raw message