Better extend the RequestProcessor class.


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] 
Sent: Monday, September 08, 2003 2:24 PM
To: [EMAIL PROTECTED]
Subject: Any potential drawbacks with this design

Hi All,

Please give me your comments/suggestions on the below design.

I need to perform some common functionality across all the application
action classes, so I have written an abstract MyOwnAction class
inheriting
from STRUTS Action class. All application action classes will be
extending
MyOwnAction class. I have overridden the execute() method in MyOwnAction
class in which I am doing my desired common functionality. I am also
publishing an abstract method executeTask() which should be overridden
by
the all the application action classes  The executeTask() method is
called
by the execute() method of MOwnAction class. Basically the executeTask()
is
now the method where the application action classes will write the
application code as opposed to execute().

Regards
Sreekant G



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

Reply via email to