Dale Newfield wrote:
Dave Newton wrote:
Does that deal with the submit button name thing?
--- Jeromy Evans <[EMAIL PROTECTED]>
wrote:
<action name="/home_*" method="do{1}">
</action>
I don't believe so. It just makes /home_update.do execute the
doUpdate() method (assuming it does the camelcase stuff implied). It
doesn't change the naming scheme for all methods on that action class,
just provides a shorthand mapping from urls that begin "/home_".
Right. The only benefit is that it prevents requests using the wildcard
notation from calling methods without the do prefix because doMethod is
assumed.
I would expect "/home_view.do?method:update" to call update(), not
doUpdate(), although "/home_view.do?method:doUpdate" should call
doUpdate().
Note: I've read code and theorized here, but not tested the hypotheses.
Right. The DefaultActionMapper uses the method: prefix directly
irrespective of the other settings. Only the action:prefix accounts for
dynamicMethodCalls.
It would be simple enough for the DefaultActionMapper to check a flag as
well except I think this would also prevent the method="METHOD_NAME"
notation from being used in struts.xml as well.
---------------------------------------------------------------------
To unsubscribe, e-mail: [EMAIL PROTECTED]
For additional commands, e-mail: [EMAIL PROTECTED]