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 anyboy give me the sample code for both HTML and Servlet?

[718 byte] By [arijit_datta] at [2007-11-26 9:00:43]
# 1
I would really recommend that you post this and similar questions to JSP or servlet forum: http://forum.java.sun.com/forum.jspa?forumID=45or http://forum.java.sun.com/forum.jspa?forumID=33
Snjezana at 2007-7-6 23:05:49 > top of Java-index,Application & Integration Servers,Application Servers...
# 2
I would really recommend that you post this and similar questions to JSP or servlet forum: http://forum.java.sun.com/forum.jspa?forumID=45or http://forum.java.sun.com/forum.jspa?forumID=33
Snjezana at 2007-7-6 23:05:49 > top of Java-index,Application & Integration Servers,Application Servers...