beautypg.com

Enabling empinfo to delete and retrieve, Employee details – HP Integrity NonStop H-Series User Manual

Page 131

background image

The message

Insert Operation Successfully Executed

is displayed.

Figure 5-28

shows the EmpInfo: Message screen.

Figure 5-28 EmpInfo: Message Screen

Enabling EmpInfo to Delete and Retrieve Employee Details

This section describes the following activities:

1.

Creating JSPs to Delete and Retrieve Employee Details

2.

Creating the RowMapper Class

3.

Modifying the

EmployeeDao.java Class

File

4.

Modifying the

Employee.java

File

5.

Modifying the

EmployeeController.java

File

6.

Modifying the

EmpInfo-servlet.xml

File

7.

Modifying the

index.jsp

File

Creating JSPs to Delete and Retrieve Employee Details

To delete or retrieve any employee details in your EmpInfo application, you must create the
following files:

retrieveordelete.jsp

retrieveresult.jsp

deleteresult.jsp

To create these JSP files, complete the following steps:

1.

Create the

retrieveordelete.jsp

file in the

EmpInfo/WebContent/WEB-INF/jsp

directory, as described in the

Creating the

index.jsp

File

section.

2.

Modify the

retrieveordelete.jsp

file, to retrieve an Employee ID from the JSP page,

as follows:

Overview of EmpInfo

131

This manual is related to the following products: