RequestDispatcher added to servlet

This commit is contained in:
Shubham Aggarwal
2016-11-28 09:36:42 +05:30
parent 0a9a0e819a
commit aa2285f3b4
5 changed files with 81 additions and 22 deletions

View File

@@ -1,29 +1,25 @@
<%--
Created by IntelliJ IDEA.
User: shubham
Date: 26/11/16
Time: 8:52 PM
To change this template use File | Settings | File Templates.
--%>
<%@ page contentType="text/html;charset=UTF-8" language="java" %>
<html>
<head>
<title>Form</title>
<title>Calculate BMI</title>
</head>
<body>
<form action="informationServlet" method="POST">
<form name="bmiForm" action="calculateServlet" method="POST">
Name:<input type="text" name="userName"/><br/><br/>
Planet:
<select name="userPlanet">
<option>Mercury</option>
<option>Venus</option>
<option>Mars</option>
</select>
<br/><br/>
<input type="submit" value="Submit"/>
<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>