Creating the Web pages, servlets, JSPs, and RPG code

To construct the components of SV000618:

  1. Create a Web project to hold all of the files you will create.
  2. Write a ListItems JSP file that lists items in the iSeries inventory database. You can use Page Designer in iSeries Web development tools to write the servlet. More specifically, you can lay out the page in the Design view, and add appropriate code in the Source view. You also need to insert a subfile Design Time Control (DTC) to interact with the TNLSTITM RPG service program, filling the subfile with database records. You can specify the service program in the DTC control settings.

Next, you need to use the Web Interaction wizard to create the input page:

Next, you need to write a GetCost JSP output page with Page Designer, which takes input from the ListItems.jsp input page. When a user clicks an item on the ListItems.jsp page, a GetCost.jsp page displays details for the item.

After creating the GetCost.jsp page, use the Web Interaction wizard to create a WitOrder interaction between ListItems.jsp (that you select as the input page) and GetCost.jsp (that you select as the output page):

Next, you need to import Web Services Definition Language (WSDL) files from project SV000514 so that the administrator can retrieve the current cost of an item from the wholesale supplier by pressing the Get cost button.

Next, you need to use the Web Interaction wizard to link ReturnCost.jsp as input and Order.jsp as output so that the administrator can click an Order button to order the selected item from the wholesale supplier.

Next, use the SV001586 Web service so that the administrator can specify the size and quantity of ordered items.


[ Top of Page | Previous Page | Next Page | Table of Contents ]