This week's book giveaway is in the OCMJEA forum. We're giving away four copies of OCM Java EE 6 Enterprise Architect Exam Guide and have Paul Allen & Joseph Bambara 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.