Hi,
I am trying to implement ParameterNameMethodResolver and MultiActionController objects to handle the form containing multiple submit buttons.
As part of configuration file, I have
And
jsp file contains several submit buttons like
According to ParameterMethodNameResolver's api,
...
The second resolution strategy is primarily expected to be used with web pages containing multiple submit buttons. The 'name' attribute of each button should be set to the mapped method name, while the 'value' attribute is normally displayed as the button label by the browser, and will be ignored by the resolver.
...
However, clicking on submit buttons, the form always uses both name/value attributes of button for composing name/value parameter. That is, I always get .../load.htm?showAll=Show+All or .../load.htm?show=Show or .../load.htm?signoff=Sign+Off. Instead, I am expecting something like .../load.htm?action=Show+All or .../load.htm?action=Show, etc.
I must be implementing it incorrectly.
My head is hurt. Please help!
Frank