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=13476>.
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=13476

CombinedDispatchAction

           Summary: CombinedDispatchAction
           Product: Struts
           Version: 1.1 Beta 2
          Platform: All
        OS/Version: All
            Status: NEW
          Severity: Enhancement
          Priority: Other
         Component: Standard Actions
        AssignedTo: [EMAIL PROTECTED]
        ReportedBy: [EMAIL PROTECTED]


I've written a CombinedDispatchAction which subclasses LookupDispatchAction 
and combines the behavior of that and DispatchAction. So:
1. If a request has the named parameter with a value which matches a method 
name of the CombinedDispatchAction sub-class, that method is executed 
(DispatchAction behavior).
2. Else if a request has the named parameter with a value which exists in the 
resources map, and the key for that value is also a key with a method name 
defined in getKeyMethodMap(), the corresponding method is executed 
(LookupDispatchAction behavior).

I've added a getKeyMethodMap() implementation which does the following:
For each "key" String  which is part of an array given by a new method 
(getMessageKeyStubs()), and for each method in the CombinedDispatchAction sub-
class, create a map entry which looks like [key].[method-name]=[method-name]. 
This behavior reduces some of the maintenance that otherwise goes with 
implementing getKeyMethodMap(). 

Is this useful to contribute as a patch or enhancement?

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

Reply via email to