Creating the controller for empinfo, Create the package for the controller class – HP Integrity NonStop J-Series User Manual
Page 54

Figure 14 J2EE Module Dependencies Dialog Box
4.
Click OK.
The J2EE module dependency on the JAR files is resolved.
Creating the Controller for EmpInfo
In the Spring Web MVC framework, the controller handles the request and returns a ModelAndView
.
Create the Controller to handle the navigation logic and to interact with the service tier of the
business logic.
To create the Controller, complete the following steps:
1.
“Create the Package for the Controller Class” (page 54)
2.
“Create the Controller Class” (page 55)
Create the Package for the Controller Class
To create a package com.hp.empinfo.web:
1.
In the Project Explorer frame, right-click EmpInfo and select New >Package.
The New Java Package dialog box appears.
2.
In the Name field, type com.hp.empinfo.web and ensure that the Source folder is set to
EmpInfo/src
.
54
Spring Framework