Well,

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?

Darren.

-----Original Message-----
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
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?

Mark

-----Original Message-----
From: Darren Hill [mailto:[EMAIL PROTECTED]]
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?

Darren

--
To unsubscribe, e-mail:
<mailto:[EMAIL PROTECTED]>
For additional commands, e-mail:
<mailto:[EMAIL PROTECTED]>

--
To unsubscribe, e-mail:   <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>

Reply via email to