Updating a row in a database table from a Java application requires you to do the following tasks:
edit.jsp
file with the data for that employee displayed, ready for editing.edit.jsp
, that includes a form and a table to display all the data of a single employee and enables a user to change the values.edit.jsp
page, writes the updated values to the Employee.java
bean and calls the updateEmployee
method.You will see how to do this in the following sections: