OneCompiler

addEmployee.jsp

108
<!DOCTYPE html> <html lang="en"> <head> <meta charset="UTF-8"> <title>Add Employee</title> </head> <body> <h2>Add Employee</h2> <form action="EmployeeCRUDServlet" method="post"> <input type="hidden" name="action" value="add"> <label for="name">Name:</label> <input type="text" id="name" name="name" required><br> <label for="email">Email:</label> <input type="email" id="email" name="email" required><br> <label for="contact">Contact:</label> <input type="text" id="contact" name="contact" required><br> <label for="position">Position:</label> <input type="text" id="position" name="position" required><br> <label for="password">Password:</label> <input type="password" id="password" name="password" required><br> <button type="submit">Save</button> </form> </body> </html>