[Opensource] prePerform(), postPerform() Template Methods

larry hamel expresso at codeguild.com
Wed Oct 29 12:49:38 PST 2003


At 08:16 AM 10/29/2003, you wrote:
>At 10:21 PM 10/28/2003, you wrote:
>>good idea, Eddie.       I'll put this in if Mike agrees.
>
>Oh absolutely!

added Template Method 

    public void postLogoutProcessing(ControllerRequest request, ControllerResponse response)
            throws ControllerException {}

to SimpleLoginController.


>>Similarly, I perceive a need for a Template Method pattern to enable pre- and postprocessing on the main controller path,
>>        nextState.perform(stateForm, myRequest, myResponse);
>
>Uhh, I may be missing something, but I believe we already have that ability through the Struts Action inheritance.  I think pre and post execution was included there.  Somebody correct me if I'm wrong.
>
>Peter Pilgrim, can you comment on this?
>                                                -Mike

great!  ...what methods?  ...don't see any obviously-named methods that Controller.java inherits...

larry




More information about the Opensource mailing list