On 2/20/06, Frank W. Zammetti <[EMAIL PROTECTED]> wrote: > I mean, we look up chains in a catalog, not > commands, right? (except technically you *are* looking up a command, I > think conceptually for Struts developers that isn't an accurate > description though).
In our C# implementation, we give Commands (and therefore Chains) a name, so we can lookup the Command (or Chain) by name. In this way, the caller doesn't need to know anything about the implementation. So, to fire a Command from an ASPX codebehind, we do something like IViewHelper helper = GetHelperFor(App.MEETING_LIST); // string constant helper.Execute(); if (helper.IsNominal) { ... } Where the helper encapsulates the Context and Command, along with error handling and such. In my own work, I've found the ability to interchange Commands with Chains to be invaluable. I couldn't imagine living without the subsituation principle now. -Ted. --------------------------------------------------------------------- To unsubscribe, e-mail: [EMAIL PROTECTED] For additional commands, e-mail: [EMAIL PROTECTED]