struts-user mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From "Nelson, Laird" <Laird.Nel...@FMR.COM>
Subject RE: Struts design: All actions in one ActionClass
Date Wed, 11 Dec 2002 18:12:07 GMT
> -----Original Message-----
> From: Jordan Thomas []
> 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.

(b) in general is the best choice.  Actions are basically like event
handlers in a GUI.

The drawback to (b) of course is that you:

  *  have a lot of classes
  *  have a lot of people potentially stepping on each other to add mappings
     to the configuration file

Occasionally, when (b) is really, really overkill I'll use (c), but I
usually regret it later.

Just one man's opinion.


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

View raw message