struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Darren Hill <>
Subject RE: Extending Action and DispatchAction
Date Mon, 23 Sep 2002 18:03:27 GMT

I have a bunch of common functions ( ie. accessing stateless session bean,
which accesses EJB's ).
I've put this functionality in a BaseAction, which extends Action.

I have now got a use for a DispatchAction.  I can extend this to make a
BaseDispatchAction and 'copy' that code so that all of my actions that
extend it behave the same way.

I'd like to NOT copy those functions.

So .. in my design ... I've got 2 types of actions ( regular and Dispatch ),
but they both have common functions.
Where do the common functions go so that both types of actions have access
to them?


-----Original Message-----
From: Galbreath, Mark []
Sent: September 23, 2002 1:58 PM
To: 'Struts Users Mailing List'
Subject: RE: Extending Action and DispatchAction

How are you extending 2 classes at the same time in the same Action class?
Can you describe your class hierarchy a little more clearly?


-----Original Message-----
From: Darren Hill []
Sent: Monday, September 23, 2002 1:52 PM

If I've got common code that happens in ALL actions and I extend BOTH Action
and DispatchAction .. how can I include the common methods for both actions,
rather the copying that code in each?


To unsubscribe, e-mail:
For additional commands, e-mail:

To unsubscribe, e-mail:   <>
For additional commands, e-mail: <>

View raw message