Summary of high level steps

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:

  1. Write an HTML shopping Web page.
  2. Write a servlet that populates a Java bean (using JDBC and SQL) with available items for the customer to purchase.
  3. 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
  4. 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.
  5. Write an HTML form for the customer to enter personal information.
  6. 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.
  7. 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 ]