- Select the JSP that you configured as the master page in the Project Navigator
view, and click Run on server. If you are working with
the DB2® V8.2
SAMPLE database and have completed the previous tasks, select the updateDepartment.jsp.
- Select a WebSphere® Application
Server v6.1 server, then click OK. The master page
launches in a browser.
- Click on the link you created on the master page, for example, Add Employee.
The link opens a form in the detail page where you can enter in information.
For example, the createEmployee.jsp where you can enter employee
information.
- Enter information in the fields, then click Submit.
You are returned to the master page, for example, updateDepartment.jsp.
You should immediately see the update on the form on the master page. If you
are using the examples, the DEPARTMENT contains the new EMPLOYEE that was
added on the updateDepartment.jsp.
- Make a few more change on the detail page, then submit the master page.
For example, add a few more employees on the createEmployee.jsp,
and then submit updateDepartment.jsp to commit the changes
to the database.
- Locate the table, for example, EMPLOYEE, under the servers node of the
Project Explorer view, and right click and select Sample Contents.
The Database Output view opens.
- Verify that the changes you made, for example, the new employees you created,
were added to the database.