User Manual
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