A Simple Servlet: Calling from HTML ..This servlet reads two parameters from an HTML form. It then does simple calculations and generates a new HTML page with the results. Here is the initial HTML:
<html>
<head>
<title>Pizza Size</title>
</head>
<body>
<form method=get action=http://ux2/servlet/PizzaSize>
Size of round pizza?
<input type=text name=CIRCLE><p>
Size of square pizza?
<input type=text name=SQUARE><p>
<input type=submit value=Calculate Area>
</form>
</body>
</html>
Author | Title | Track | Home