beautypg.com

Creating the empinfo-servlet.xml file, Creating the, Empinfo-servlet.xml – HP Integrity NonStop H-Series User Manual

Page 101: File

background image

org.springframework.web.servlet.DispatcherServlet

1


EmpInfo
*.htm

Creating the

EmpInfo-servlet.xml

File

Create a

WebApplicationContext

file, which contains references to all the web-related

components. The name of this file is determined by the value of the

element

in the

web.xml

file, with

EmpInfo-servlet

appended to it (hence,

EmpInfo-servlet.xml

). This is the standard naming convention used with the

Spring Web MVC

framework.

The

EmpInfo-servlet.xml

file contains the bean definitions (plain Java objects) used by the

DispatcherServlet

.

To create the

EmpInfo-servlet.xml

file in the

EmpInfo/WebContent/WEB-INF

directory,

complete the following steps:

1.

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

The New File Wizard dialog box appears.

2.

From the list of folders, select XML > XML and click Next.

Figure 5-11

shows the New File Wizard dialog box.

Figure 5-11 New File Wizard Dialog Box

Overview of EmpInfo

101

This manual is related to the following products: