Manual
public ModelAndView handleRequest(HttpServletRequest request,
HttpServletResponse response)
throws ServletException, IOException {
String now = (new Date()).toString();
logger.info("Returning hello view with " + now);
return new ModelAndView("insert", "now", now);
}
}
At this point, you can either deploy and verify the EmpInfo application you have developed
so far on your NonStop system, or you can continue with the steps described in the
Developing Business Logic and Providing the Web Interface section.
NOTE: The code of the EmpInfo application developed so far is present in <My SASH
Home>\spring\getting-started\EmpInfo-InParts\Part-4
To verify your EmpInfo application developed so far, complete the following steps:
1. Deploy the application using the steps described in the Deploying the EmpInfo WAR
File in NSJSP on NonStop section.
2. Verify your application by accessing the following URL:
http://<IP Address of the iTP WebServer>:<port#>/servlet_jsp/EmpInfo
3. Click Insert Employee.
The EmpInfo: Employee Details screen appears.
Figure 5-22 shows the EmpInfo: Employee Details screen.
Figure 5-22 EmpInfo: Employee Details Screen
Developing Business Logic and Providing the Web Interface
This section describes the following tasks:
Overview of EmpInfo 117