Jeff wrote: > I'm thinking of extending the DispatchAction supplied in the Struts > download for my app by overriding the execute() method as described > below, any negative/positive feedback on this one? > * This class assumes that a DynaActionForm is associated with this > action and that the form has a property called "method". > * Whatever that property is set to is the method this class uses > reflection to invoke. > */
This sounds very similar to LookupDispatchAction, perhaps even a bit less flexible as LDA allows you to change what request parameter it's looking for by changing struts-config.xml. (Yours will always look for "method".) LDA also maps the values in the properties file (usually button text) to methods in the LDA by way of the getKeyMethodMap() method. So when you change the button text in one place (the .properties file) your LDA still works right. -- Wendy Smoak Applications Systems Analyst, Sr. Arizona State University PA Information Resources Management

