struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Jeffrey Black <jeffblac...@gmail.com>
Subject Re: Call a function after invocation but before jsp rendering
Date Sun, 26 Feb 2012 15:25:48 GMT
FWIW, the AnnotationWorklowInterceptor along with the @BeforeResult may be utilized.

struts.apache.org/2.x/docs/annotationworkflowinterceptor.html


On Feb 15, 2012, at 2:58 PM, Markus Demetz <markus@demetz.eu> wrote:

> perfect, didn't know that interceptor..!
> thank you!!
> 
> Am 15.02.2012 21:54, schrieb Dave Newton:
>> 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
>> 
> 
> 
> ---------------------------------------------------------------------
> To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
> For additional commands, e-mail: user-help@struts.apache.org
> 

---------------------------------------------------------------------
To unsubscribe, e-mail: user-unsubscribe@struts.apache.org
For additional commands, e-mail: user-help@struts.apache.org


Mime
View raw message