Create a base class that includes the method/common code and have that class
extend DispatchAction (and Action if you really need to). Then have all your
action classes extend that base class.
----- Original Message -----
From: "Darren Hill" <[EMAIL PROTECTED]>
To: "'Struts Users Mailing List'" <[EMAIL PROTECTED]>
Sent: Monday, September 23, 2002 12:51 PM
Subject: Extending Action and DispatchAction


> Hi All,
>
> 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