> -----Original Message----- > From: Martin Cooper [mailto:[EMAIL PROTECTED]] > Sent: Friday, December 13, 2002 12:26 AM > To: Struts Developers List > Subject: Re: Action chaining: (was - Re: Why are people up on Struts) > > > > > On Thu, 12 Dec 2002, Eddie Bush wrote: > > > :-) Precisely. Everyone should certainly be aware of the possible > > side-effects of chaining via a forward though. Assuming > you realize > > the possible problem there, and avoid it, you're fine AFAICT. If > > someone has reason why this sort of chaining (the redirect > type - not > > the > > forward) is bad, I'd sure love to hear it ... but I'll > probably wind up > > using it anyway ;-O > > Here are a couple: > > 1) Performance - every "chain" requires a round trip through > the browser, which increases network traffic and decreases > response time for the user. > > 2) Request attributes are lost, so you have to persist > everything you need, either in the session or as hidden > fields in the form, both of which have their own sets of issues.
On the other hand, you lose bookmarking. If the end result of an action is to return to a common view (e.g., after submitting the "Add Widget" form, you end up on the "View Widget" page or "View All Widgets" page) the user should be able to bookmark that page. This also applies to the back button--otherwise you get a lot of "Page Expired" type messages. If you use redirects, each view has a URL that shows up in the browser address bar, and can be bookmarked, pasted into an email, etc. -- Tim Moore / Blackboard Inc. / Software Engineer 1899 L Street, NW / 5th Floor / Washington, DC 20036 Phone 202-463-4860 ext. 258 / Fax 202-463-4863 -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>