Create the controller class – HP Integrity NonStop J-Series User Manual

Page 92

Advertising
background image

Figure 22 New Java Package Dialog Box

3.

Click Finish.

The com.hp.empinfo.web package is created.

Create the Controller Class

To create the Controller class, complete the following steps:
1.

On the Project Explorer frame, right-click EmpInfo and select New >Class.

2.

In the Package field, type com.hp.empinfo.web. In the Name field, type
EmployeeController

.

3.

In the Superclass field, type
org.springframework.web.servlet.mvc.SimpleFormController

and click Finish.

NOTE:

The Controller class EmployeeController extends the SimpleFormController

class in the org.springframework.web.servlet.mvc package provided by the Spring
framework.

92

Getting Started with Spring

Advertising
This manual is related to the following products: