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

Page 91

Advertising
background image

Figure 21 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 91)

2.

“Create the Controller Class” (page 92)

Create the Package for the Controller Class

To create a package com.hp.empinfo.webpackage, 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, type com.hp.empinfo.web and ensure that the Source folder is set to
EmpInfo/src

.

Overview of EmpInfo

91

Advertising
This manual is related to the following products: