We are planning to use Struts as part of our framework code. As part of
this work I have created an extension of the Action class that contains
generic functionality (ExtendedAction). This new class is further extended
by another class with authenticating capabilities (AuthenticatingAction).
Which is great, application teams can extend the appropriate class
depending on whether their Action requires authentication or not.

However, what if an application wants to use a DispatchAction? I can create
an ExtendedDispatchAction and an AuthenticatingDispatchAction that contain
the same code as in the classes above. However, what if an application then
wanted to use a LookupDispatchAction?  And so on.

Is there a more elegant way of solving this problem other than to add more
extended classes each time and duplicate the code?

Thanks,
Graeme


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

Reply via email to