July 15th, 2000, 09:47 PM
Join Date: Jul 2000
Location: Guayquil, Ecuador
Time spent in forums: < 1 sec
Reputation Power: 0
Hi, the best solution i can think of is manipulating the form in the client side, by doing this:
As you can imagine if you click the first button you will get some values for the form fields (using hidden fields could be good idea) and if you click the second one you get other values, doing this the servlet will "know" wich submit has been clicked.
An example function to manipulate form values is:
<input type=submit name=calculate value=""
<input type=submit name=save value=""
this code is not tested, but is something like that
Hope it helps.