This week's book giveaway is in the OCAJP 8 forum. We're giving away four copies of OCA Java SE 8 Programmer I Study Guide and have Edward Finegan & Robert Liguori on-line! See this thread for details.
Originally posted by jiju ka: The server needs to do some action but the form need not be submitted.
Again, don't make the cancel button a submit button and it will not automatically submit the enclosing form.
In the onclick handler for the non-submit button you can use Ajax to talk back to the server, or you can submit another (perhaps invisible form) to talk back to the server without submitting the "main" form.