IBM Version 5 Universal Remote User Manual


 
260 The XML Files: Development of XML/XSL Applications Using WebSphere Studio
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.
HTML
DB
DB
HTML
1
2
XMLToSQL
XML Data
XSLT
Processor
Customer XSL
Customer
Result XSL
Web
Browser
7
Customer XML
(DOM)
3
6
5
8
XSL Servlet
4