struts-dev mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
Subject [Apache Struts Wiki] Updated: StrutsCatalogBaseAction
Date Wed, 26 May 2004 13:49:19 GMT
   Date: 2004-05-26T06:49:18
   Editor: <>
   Wiki: Apache Struts Wiki
   Page: StrutsCatalogBaseAction

   no comment

Change Log:

@@ -35,3 +35,9 @@
 I have been using this idea on mid-size project and finally changed my mind. It's fine but
sooner or later you 'll realize that it would be cool to use built-in struts actions like
DispatchAction and others that provide useful functionalities. Then, as java does still not
provide multiple inheritance, you are forced to  either build a full hierarchy of abstract
actions (with one abstract actions for each kinda of built-in action you want to reuse), or
you end up adding more and more functionality to your base class. It seems to me that the
only real interest of this method is when you want to enforce the execution of a given piece
of code on each action execution (like verifying that the user is logged in), but infact to
do this a proper customization of the ActionServlet or RequestProcessor should be better (or
even a Servlet filter but this a more tedious job).
 -- Nicolas JOUVE from France
+@Nicolas issue:
+I didn't try this, but it could be handled using a Decorator pattern.
+Although stacking Actions doesn't sound so well in the first place.
+-- Axel GROSS

To unsubscribe, e-mail:
For additional commands, e-mail:

View raw message