Inserting an Employee Record

The steps for inserting a new employee record to the Employees table are similar to the process for updating an employee record:

  1. Create a method to insert a new employee row into the Employees table.
  2. Add a link to the main application page, enabling a user to click to insert a new employee. The link takes the user to an insert.jsp with an empty form ready for the user to enter details for the new row.
  3. Create a JSP page to process the form on the insert.jsp page.
  4. Create a JSP page with form controls for users to enter the values for the new employee.

This section covers the creation of Java application code for inserting new employee data in the following subsections: