beautypg.com

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

Page 106

background image

Figure 5-15 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

2.

Create the Controller Class

Create the Package for the Controller Class

To create a package

com.hp.empinfo.web

package, complete the following steps:

1.

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

The New Java Package dialog box appears.

2.

In the Name field, enter

com.hp.empinfo.web

and ensure that the Source folder is set to

EmpInfo/src

.

Figure 5-16

shows the New Java Package dialog box.

106

Getting Started with Spring

This manual is related to the following products: