In a lot of locations there is mention that actions
should not have business logic in them.

By chaining you are sometimes calling an action to
invoke the business methods that it contains.  This is
frowned upon as not a best practice.

Action chaining is useful sometimes and there is no
question about that.  It is useful to call some
presentation logic by chaining to an action that will
return to the originally called action.

It is difficult to grasp, but if the business delegate
does not contain any httpservletRequest etc stuff in
it, then this is a better approach.  There are more
layers.

sandeep
--- Siva <[EMAIL PROTECTED]> wrote:
> Thanks Alen,
> 
> Ted Husted (Struts in Action) says that the action
> chaining in the dark side
> of Struts.
> 
> The problem he mentioned is that
> 
> "when the second action is being invoked, the form
> is being 'repopulated'
> with the initial form values that the form had when
> it was passed to the
> first action "
> 
> Since I am new to struts, I am not able to grasp it
> clearly. You can find the
> info related to this in Struts FAQ. I am just
> wondering what is the alternate
> solution.
> 
> Thanks again,
> siva
> 
> 
> Alen Ribic wrote:
> 
> > Maybe I haven't came across this before or I don't
> understand but why
> > wouldn't you wanna use action chaining?
> > I just jump from one action to another until I
> have all client requested
> > baggage.
> > --Alen
> >
> > ----- Original Message -----
> > From: "Siva" <[EMAIL PROTECTED]>
> > To: <[EMAIL PROTECTED]>
> > Sent: Tuesday, July 22, 2003 11:54 AM
> > Subject: Why not to use Action chaining ?
> >
> > > Friends,
> > >
> > > Could anyone of you tell me why we ahuld not use
> Action chaining in
> > > struts framework ?
> > > I neet to do two different actions for a user
> action. how can i wachieve
> > > it without action chaining?
> > >
> > > Thanks in advance for your help.
> > >
> > > Sivakumar
> > >
> > >
> > >
>
---------------------------------------------------------------------
> > > 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]
> 


__________________________________
Do you Yahoo!?
Yahoo! SiteBuilder - Free, easy-to-use web site design software
http://sitebuilder.yahoo.com

---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]

Reply via email to