Can 3 buttons on a HTML Page , be handled by servlets
Hello Everyone. I am a beginner at J2EE so this question might be silly for you but please be kind and help me out. Here is the problem:
There are 3 buttons "ADD", "SUBTRACT" & "MULTIPLY" respectively on a HTML page and 2 TextFields to accept 2 values. The problem is to accept 2 values from the user and depending on the button clicked any of the three operations are carried out.
I want to use a servlet to do this. In Core Java we have ActionListener to listen for events and then depending on the ActionEvent object's 'trapped' event the suitable processing is done.
But how to implement this in HTML and Servlet?
Can anybody give me the sample code for both HTML and Servlet?

