struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From Rob Leland <>
Subject Re: Struts design: All actions in one ActionClass
Date Wed, 11 Dec 2002 21:16:31 GMT
David Graham wrote:

> Definitely b.  It will be far easier to maintain.  If you're worried 
> about having a lot of actions you can look at DispatchAction or using 
> DynaBeans.

I'll second that. For a project we started back in Feb 2001, I used 
small Action classes. I went away on
my Honeymoon in May and came back 3 weeks later and moved on to another 
One of the developers that took over the project merged a number of  the 
edit, delete, create, list into one big ugly mess. New developers that 
same along used that same
pattern when adding new Actions, ugh ! Now 18 months later we have 5+ 
using the same set of core Action classes and there is alot of 
complaints about how hard it
to maintain ! We are now moveing to break up those action classes. Some 
people just have to
learn the hard way , and very expensive too I might add


> David
>> From: "Jordan Thomas" <>
>> Reply-To: "Struts Users Mailing List" <>
>> To: "Struts-User" <>
>> Subject: Struts design: All actions in one ActionClass
>> Date: Wed, 11 Dec 2002 19:05:36 +0100
>> Hi,
>> What is the best way to design my application? Is it better to
>> a) Put all my actions for a particluar area (i.e. creating, editing and
>> deleting user accounts) in one Action class
>> or
>> b) Use a seperate action class for every action in my application
>> or
>> c) Put all of the actions for a particular workflow in a single Action
>> class.

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

View raw message