RequestDispatcher added to servlet
This commit is contained in:
@@ -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>
|
||||
|
||||
Reference in New Issue
Block a user