|
|||||
|
Please do the tutorial Using the Eclipse Web Tools Platform with Apache Tomcat. The tutorial is written for Eclipse 3.3 (Europa), there are some small differences for Eclipse 3.4 (Ganymede)/3.5 (Galileo):
Build a servlet that calculates a mathmatical result of two inputs and a selected operator.
Save the provided HTML file, as "calculator.html", to the wtp-tutorial/WebContent directory that you created during the tutorial. Then create a new servlet, named CalculatorServlet, that gets the two inputed numbers (fields named "operand1" and "operand2") and the desired operand and calculates the result. Treat the input fileds and the result as "float"s.
Here is several examples of input and output for the severlet.








Zip up the wtp-tutorial folder and email it to me. It should include
all of the tutorial files and the calculator files. The email subject line
reading "CS 17.11 - Spring 2010 - Project N".
Name the zip attachment Project_N_yourlastname_yourfirstname.zip.
Legend: method/function keyword literal
|