java-tutorials/javax-servlets/web/index.jsp

27 lines
641 B
Plaintext
Raw Normal View History

<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
2016-11-27 23:06:42 -05:00
<title>Calculate BMI</title>
</head>
<body>
2016-11-27 23:06:42 -05:00
<form name="bmiForm" action="calculateServlet" method="POST">
2016-11-27 23:06:42 -05:00
<table>
<tr>
<td>Your Weight (kg) :</td>
<td><input type="text" name="weight"/></td>
</tr>
<tr>
<td>Your Height (m) :</td>
<td><input type="text" name="height"/></td>
</tr>
<th><input type="submit" value="Submit" name="find"/></th>
<th><input type="reset" value="Reset" name="reset" /></th>
</table>
<h2>${bmi}</h2>
</form>
</body>
</html>