beautypg.com

Creating the view – HP Integrity NonStop H-Series User Manual

Page 109

background image

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"%>
"http://www.w3.org/TR/html4/loose.dtd">



Spring Getting Started - EmpInfo Application


Welcome to the EmpInfo Application




Enter Employee Details



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://:/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

This manual is related to the following products: