Because this is an advanced module, the instructions do not take you
through each step of creating the project, but outline the
iSeries-specific development steps taken to create such a
project. These are the high-level steps:
- Write an HTML shopping Web page.
- Write a servlet that populates a Java bean (using JDBC and SQL) with
available items for the customer to purchase.
- Write a JSP file to view items for sale and allow customers to enter the
quantity and size of the desired item, and to select the item by clicking an
Add to basket button
- Using the RecordIOManager bean, write a servlet invoked from clicking the
Add to basket button that updates the iSeries INVENTORY database by
subtracting the quantity and size required for the item, and adding this
selection to a Java bean called "basket". The servlet then redirects
the response to ViewBasket.jsp if the operation is
successful. If the operation is unsuccessful, the servlet displays an
error page.
- Write an HTML form for the customer to enter personal information.
- Write a JSP file purchase confirmation page that displays basket contents,
taxes, plus shipping and handling charges. The page also must contain a
confirmation button for the customer.
- Write a servlet that is called when the customer clicks the confirmation
button, which uses a Java bean created with the iSeries Program call
wizard. One of the Java bean's methods calls an RPG program to
create a new order in the ORDERS database on the iSeries server corresponding
to the content of the customer's basket. The servlet then returns
an order number, places the Java bean on the Web application's session,
and loads an order confirmation JSP file containing the order number.
[ Top of Page | Previous Page | Next Page | Table of Contents ]
Copyright IBM Corporation 1992, 2003. All Rights Reserved.