HTML

Web

Browser

1

6

XSLT

Processor

8

HTML

7

2

XSL Servlet

3

XML Data

4

Customer XSL

Customer

Result XSL

Customer XML

(DOM)

XMLToSQL

5

DB

Figure 11-2 Customer registration scenario outline

11.2.2 Retrieving customer information

When retrieving customer data, the user enters the membership number of the customer whose information is to be retrieved in the form provided by the HTML in the client layer. When the user presses the Query button, a series of interactions between system components take place, as indicated in Figure 11-3, and in the following steps:

1.The HTML sends that value to the servlet through the HTTP request to the servlet, invoking the servlet doPost method.

2.The servlet validates that the user has entered a membership value. Then the servlet invokes the SQLToXML library with one parameter, membership number.

3.The SQLToXML retrieves the data from the database and constructs an XML document.

260 The XML Files: Development of XML/XSL Applications Using WebSphere Studio

Page 276
Image 276
IBM Version 5 manual Retrieving customer information, Customer registration scenario outline