DO NOT REPLY TO THIS EMAIL, BUT PLEASE POST YOUR BUG RELATED COMMENTS THROUGH THE WEB INTERFACE AVAILABLE AT <http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13521>. ANY REPLY MADE TO THIS MESSAGE WILL NOT BE COLLECTED AND INSERTED IN THE BUG DATABASE.
http://nagoya.apache.org/bugzilla/show_bug.cgi?id=13521 CombinedDispatchAction Summary: CombinedDispatchAction Product: Struts Version: 1.1 Beta 2 Platform: Other OS/Version: Other Status: NEW Severity: Normal Priority: Other Component: Standard Actions AssignedTo: [EMAIL PROTECTED] ReportedBy: [EMAIL PROTECTED] I've developed a subclass of LookupDispatchAction called CombinedDispatchAction with the following behavior: 1. Both DispatchAction and LookupDispatchAction behaviors are supported, in that order (ie if a method exists which matches the parameter value specified, it is executed; otherwise a lookup is performed). 2. If a parameter value is not specified but request.getAttribute(parameter) returns, the 'name' will be set to that (useful in cases where one Action is forwarding or including another). 3. A helper getKeyMethodMap() is implemented as follows: A method, getMessageKeyStubs(), returns an array of Strings (eg. {"button", "prompt"}). For a subclass containing methods add(...), edit(...) and delete(...), the following map will be generated: {"button.add", "add"}, {"prompt.add", "add"}, {"button.delete", "delete"}, {"prompt.delete", "delete"}, {"button.edit", "edit"}, {"prompt.edit", "edit"} This pattern allows methods to be easily added without having to update getKeyMethodMap(). Are any of these features useful? What is the process of submitting a patch? -- To unsubscribe, e-mail: <mailto:[EMAIL PROTECTED]> For additional commands, e-mail: <mailto:[EMAIL PROTECTED]>