struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "John Owen" <johnlowen_b...@hotmail.com>
Subject Re: Extending Action and DispatchAction
Date Mon, 23 Sep 2002 20:31:22 GMT
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" <dhill@724.com>
To: "'Struts Users Mailing List'" <struts-user@jakarta.apache.org>
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:struts-user-unsubscribe@jakarta.apache.org>
> For additional commands, e-mail:
<mailto:struts-user-help@jakarta.apache.org>
>

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


Mime
View raw message