You are viewing a plain text version of this content. The canonical link for it is here.
Posted to user@struts.apache.org by he...@teradyne.com on 2003/05/29 15:55:19 UTC

Dispatch action and base action

Hi
I have an app where I define my own base action class. I declare it
abstract and have it implement a few convenience methods that all my other
actions might/will use(as recommended in a few books and web pages). But,
there are cases where I want to create an action that uses Dispatch action
feature. So my class has to extends dispatch action class. But I still want
to have my base action class "convenience methods" available. And I don't
want to have my base extend dispatch action. that's just hideous. So after
all my bitching, are there any approaches/best practices that deals with
this??

thx,
-Henrik Bentel



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


RE: Dispatch action and base action

Posted by Andrew Hill <an...@gridnode.com>.
What I did (nasty workaround) was to create my own base dispatch action
which was basically a cut and paste of the struts dispatch action, but that
extended my own base action class.

Quick and easy (& dirty) and works nicely but the big downside to this is
that if you update your struts version you will need to 'redo' this class to
get the latest dispatchAction code...

-----Original Message-----
From: henrik.bentel@teradyne.com [mailto:henrik.bentel@teradyne.com]
Sent: Thursday, 29 May 2003 21:55
To: struts-user@jakarta.apache.org
Subject: Dispatch action and base action


Hi
I have an app where I define my own base action class. I declare it
abstract and have it implement a few convenience methods that all my other
actions might/will use(as recommended in a few books and web pages). But,
there are cases where I want to create an action that uses Dispatch action
feature. So my class has to extends dispatch action class. But I still want
to have my base action class "convenience methods" available. And I don't
want to have my base extend dispatch action. that's just hideous. So after
all my bitching, are there any approaches/best practices that deals with
this??

thx,
-Henrik Bentel



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


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