User Manual

Figure 15 New Java Package Dialog Box
3. Click Finish.
The com.hp.empinfo.web package is created.
Create the Controller Class
1. In 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.
Getting Started with Spring 55