Manual
Creating the View
After completing the controller implementation for EmpInfo, complete the following steps to
create the first view of the EmpInfo application:
1. Create a new JSP page insert.jsp in EmpInfo/WebContent by following steps as
explained in the Creating the index.jsp File section.
2. Add <Spring Getting Started – EmpInfo Application> as the title tag, <Welcome
to the Enter Employee Details Page> as the header item and <Enter Employee
Details> within the body tag of EmpInfo/WebContent/insert.jsp, as shown below:
<%@ page language="java" contentType="text/html; charset=ISO-8859-1"
pageEncoding="ISO-8859-1"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"
"http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1">
<title>Spring Getting Started - EmpInfo Application</title>
</head>
<body>
<h2 align="center"> Welcome to the EmpInfo Application </h2>
<br>
<p><B><font color = "003399">Enter Employee Details</font></B></p>
</body>
</html>
At this point, you can either deploy and verify the EmpInfo application you have developed
so far on your NonStop system, or you can proceed to the Developing and Configuring
Views and the Controller section.
NOTE: The code of the EmpInfo application developed so far is present in <My SASH
Home>\spring\getting-started\EmpInfo-InParts\Part-2
To verify your EmpInfo application, complete the following steps:
1. Deploy the application using the steps described in “Deploying EmpInfo on NonStop”
section.
2. Verify your application by accessing the following URL:
http://<IP Address of the iTP WebServer>:<port#>/servlet_jsp/EmpInfo/insert.htm
The Welcome screen of the EmpInfo application appears.
Figure 5-18 shows the EmpInfo: Employee Details screen.
Overview of EmpInfo 109