Yeah .. guess that's my only option.
-----Original Message-----
From: Sri Sankaran [mailto:[EMAIL PROTECTED]]
Sent: September 23, 2002 2:05 PM
To: Struts Users Mailing List
Subject: RE: Extending Action and DispatchAction
I think what he means is:
public class Foo extends Action {
private void doCommonStuff() {
}
}
public class Bar extends DispatchAction {
private void doCommonStuff() {
}
}
I think this calls for delegation to a class that just does the common
stuff.
public class Foo extends Action {
private void doCommonStuff() {
Baz.doCommonStuff();
}
}
public class Bar extends DispatchAction {
private void doCommonStuff() {
Baz.doCommonStuff();
}
}
Maybe not necessarily static, but that would be predicated by your needs.
Sri
-----Original Message-----
From: Galbreath, Mark [mailto:[EMAIL PROTECTED]]
Sent: Monday, 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]>
--
To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]>
For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>