I was trying to avoid rehashing old arguments about action chaining. I have heard two arguments: one, it is not supported and can cause strange results and, two, it is indicative of bad design (the argument made below).
I disagree that action chaining is always indicative of bad design. See my email on the users list (that got no discussion, which I never understood) http://marc.theaimsgroup.com/?l=struts-user&m=104370639426791&w=2. I believe I made an original argument for action chaining being almost required in a particular situation. In any case, I am not trying to force the committers to make action chaining easier in the vanilla struts distribution. I was merely hoping to get feedback if there is an obvious problem with my approach. Perhaps I should have posted to the users list - I thought that, since this deals with modifying the framework instead of just implementing within it, that I'd get better feedback here. Thanks, Derek Richardson -----Original Message----- From: Sgarlata Matt [mailto:[EMAIL PROTECTED] Sent: Friday, September 26, 2003 4:05 PM To: Struts Developers List Subject: Re: Action Chaining There are probably many different solutions to make action chaining more intuitive. However, action chaining is not considered a best practice in the Struts community so effort will not be put forward to make it easier to do. There has been a lot of discussion of action chaining in both the user and developer list archives. As a quick summary, action chaining is considered a bad idea because it generally indicates that logic that should be in a separate business tier has been pushed up inappropriately to the presentation tier. If you are looking for a way to chain commands in the business tier you might want to investigate the Commons Chain package, which is currently in the jakarta commons sandbox. I hope that answers your question, Matt ----- Original Message ----- From: "Derek Richardson" <[EMAIL PROTECTED]> To: "Struts Developers List" <[EMAIL PROTECTED]> Sent: Friday, September 26, 2003 3:57 PM Subject: Action Chaining To enable action chaining in an intuitive way, it seems that when the ActionServlet is called, it can look for an attribute in the request that indicates whether it has run before in this request. If the attribute is not there, do everthing and then set the attribute; if the attribute is there, don't reload the action form and don't reset the action errors collection and don't do anything else that intuitively should be one-time-only. Or maybe it's the request processor that's modified, in the same spirit. I've just had the idea, haven't actually looked at the code. Of course, this is so obvious that it must have been discarded already with good reason. So, before I find out why it's not reasonable the hard way by implementing it, please tell me where the hidden problems lie. Thanks, Derek Richardson --------------------------------------------------------------------- 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] --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]