This week's book giveaway is in the Mac OS forum. We're giving away four copies of a choice of "Take Control of Upgrading to Yosemite" or "Take Control of Automating Your Mac" and have Joe Kissell on-line! See this thread for details.
In the apache site it says: Cancel handlers - DispatchAction, LookupDispatchAction, and MappingDispatchAction - Now provide default cancel handler that can be overridden. It also also possible to specify the default handler name.
I'm trying to have a cancel button on a form that works with dispatchAction.
When I 'plug' my button on the jsp page:
I get the error message:
HTTP Status 400 - Request[/GroupTravelerList] does not contain handler parameter named operation
type Status report
message Request[/GroupTravelerList] does not contain handler parameter named operation
description The request sent by the client was syntactically incorrect (Request[/GroupTravelerList] does not contain handler parameter named operation).
The method to handle a cancel button is "cancelled". (see the javadoc). You need to overrride that method and include whatever logic you want executed when the cancel button is pressed.
It also appears that you may have to send some value in the "operation" parameter since that is the declared handler parameter. Adding an onclick event to the button might do the trick. Something like this: