HP Integrity NonStop J-Series User Manual
Page 88

Figure 19 New XML File: Options Dialog Box
The EmpInfo-servlet.xml file is created in the EmpInfo/WebContent/WEB-INF
directory.
5.
Modify the EmpInfo-servlet.xml file by adding a bean entry named /insert.htm
and com.hp.empinfo.web.EmployeeController as its class.
NOTE:
The com.hp.empinfo.web.EmployeeController class provides controller for
the EmpInfo application to service a request according to its corresponding URL mapping in
/insert.htm
. The Spring Web MVC framework uses an interface class called
HandlerMapping
to define the mapping between a request URL and the handler object,
which handles the request. The controller ensures that the URL mapping the EmpInfo application
is com.hp.empinfo.web.EmployeeController, instead of DispatcherServlet.
After modification, the EmpInfo-servlet.xml file appears as:
xmlns:aop="http://www.springframework.org/schema/aop"
xmlns:p="http://www.springframework.org/schema/p"
xmlns:context="http://www.springframework.org/schema/context"
xmlns:jee="http://www.springframework.org/schema/jee"
xmlns:tx="http://www.springframework.org/schema/tx"
xsi:schemaLocation="
http://www.springframework.org/schema/beans
http://www.springframework.org/schema/beans/spring-beans-2.5.xsd
http://www.springframework.org/schema/context
http://www.springframework.org/schema/context/spring-context-2.5.xsd
http://www.springframework.org/schema/jee
88
Getting Started with Spring