I would not recommend this, since there is no real need for using JavaScript here and it limits the clients that can use your page. Simply use three submit buttons with different name attributes (i.e. '...name="cancel"', '...name="update"', ...) and check for the existence of these names in your processing
JSP or Servlet.
The other part of your question seems to be more of an HTML issue. I am not an expert on this myself, but it sounds like using a table row with three cells, one for each submit button, should work.
-Mirko
Originally posted by vaibhav punekar:
Thanks Ramneek,
I got your point,that means I ll have to use Javascript.