Thanks Leon....that was useful.. I have never used DispatchAction ...need to study it a little.....
-----Original Message----- From: Rosenberg, Leon [mailto:[EMAIL PROTECTED] Sent: Wednesday, September 01, 2004 6:51 PM To: Struts Users Mailing List Subject: AW: Action Class Reusable If you want to use MVC (and so struts) the "proper" and "modern" way, each of your action classes should exactly match one "use case". If you share same use cases across different "modules" (what ever you call modules) those actions would be automatically reusable. Using _one_ action for a complete module is not truly MVC, so if your actions (or at least your redefinition of the execute method) has more then 10 lines of code you should seriously rethink your design. For grouping actions you can use the dispatcher action, or (better) action hierarchy. Regards Leon > -----Ursprüngliche Nachricht----- > Von: Jitesh Sinha [mailto:[EMAIL PROTECTED] > Gesendet: Mittwoch, 1. September 2004 14:43 > An: Struts Users Mailing List > Betreff: Action Class Reusable > > Hi All, > > Is there a way we can make our Action Classes reusable across different > modules? > Generally we have one Action class for every module.Maybe,if we put our > business logic in different business classes (particular to a module) and > make these business classes implement a common interface? > I have only a vague idea till now about this.Can someone elaborate? > > Thanks, > -Jitesh > > > --------------------------------------------------------------------- > To unsubscribe, e-mail: [EMAIL PROTECTED] > For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]