Code:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC >
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Insert title here</title>
</head>
<body>
<h1><centre>Employee Registration</centre></h1>
<form name="emp" method="post" action="ControlServlet">
Enter Employee Name: <input type="text" name="name" size="20"><br></br>
Enter Department: <input type="text" name="dept" size="20"><br></br>
Enter Employee Id: <input type="text" name="id" size="20"><br></br>
Enter Salary: <select name="salary" >
<option value=10000>10,000</option>
<option value=20000>20,000</option>
<option value=30000>30,000</option><br></br>
</select>
<p><input id="inputsubmit1" type="submit" value="Submit" color="#00FFFF"></input></p>
<p><input type="hidden" value="reg" name="check"></input></p>
</form>
</body>
</html>