Manual
Figure 5-16 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, enter com.hp.empinfo.web. In the Name field, enter
EmployeeController.
3. In the Superclass field, enter
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.
Figure 5-17 shows the New Java Class dialog box.
Overview of EmpInfo 107