I've seen it both waysputting all classes into a global kitchen sink package
(even when the Actions have completely different functionality and address
completely disparate domain objects)
on the other hand i've also seenbanishing (@Embeddable and or inner classes or
classes which belong together) to the far reaches of the distro..reachable only
by a NASA martian probeFrom the onset an architect or DBA should be able to
discern where these objects should live as they know the relationship of
objects and entities and can abstractly define domain boundaries in which the
objects should be locatedbut its the individual who ultimately has to resolve
ALL dependencies such as the release manager who is the ultimate arbiter on
where all entitities should be located
Anyone else?Martin ______________________________________________ Disclaimer
and confidentiality note Everything in this e-mail and any attachments relates
to the official business of Sender. This transmission is of a confidential
nature and Sender does not endorse distribution to any party other than
intended recipient. Sender does not necessarily endorse content contained
within this transmission. > Date: Mon, 4 Aug 2008 16:47:24 +0100> From: [EMAIL
PROTECTED]> To: user@struts.apache.org> Subject: Re: [S2] Refactoring Action
classes> > You don't need to have all your actions for a namespace in a single
> class, you can use multiple classes.> > I usually group methods acting on a
common object into a single class > which usually leaves me with the 5 public
methods in a class which map > to actions (typically CRUD plus a View method),
and multiple classes for > different object types.> > Imho 20 is too many, 10
is a lot, 5 is OK (don't forget that's public > action methods, the number of
private methods you have will depend on > your app).> > Al.> > > Milan
Milanovic wrote:> > Dear Al and Dave,> >> > I tried to fix that error with
session variable all weekend and I didn't> > managed to fix it. When action is
defined as redirect action to another> > namespace, and when that action is
called, another action called method> > doesn't see my session variables. I
just changed this redirect action to> > that another namespace, as standard
action (not redirect) and I now see my> > variables! I don't have any idea why
it doesn't work with redirect action,> > but I'm SURE that there is some
problem.> >> > I have one question regarding refactoring action classes, is it
much to have> > 20 actions per one namespace/action class ?> >> > --> >
Regards, Milan> > > > > -- > --> Al Sutton> > W: www.alsutton.com> T:
twitter.com/alsutton> > >
---------------------------------------------------------------------> To
unsubscribe, e-mail: [EMAIL PROTECTED]> For additional commands, e-mail: [EMAIL
PROTECTED]>
_________________________________________________________________
Get Windows Live and get whatever you need, wherever you are. Start here.
http://www.windowslive.com/default.html?ocid=TXT_TAGLM_WL_Home_082008