Exercise 4.2: Testing the WebFacing application

Before you begin, you must complete Exercise 4.1: Showing the index.jsp page.

To run the Web application:

  1. In your browser pane, click the Launch link.

    After a few moments the first application page opens in the browser.
    First application page in browser window

    If you find the response time slow, keep in mind that the first time the JSP file is requested, it has to be compiled into a servlet the first time. If you run the application a second time, you will see improved performance since the servlet already exists. This is normal application server behavior.

    Now you want you to go through the same steps as in Module 1. Reviewing the 5250 order entry application to review the results of the WebFacing conversion. This will give you a sense of how the default conversion will change your original application. You will then have a chance to improve the conversion results.

  2. Click the Prompt button, or press command key F4 to open the selection list window.
    Customer selection list
  3. Select a customer from the list (this is your converted subfile).
    Order entry screen with customer details
  4. Press the Enter key.
  5. Click the Prompt button, or press command key F4 to display the parts selection list.
    Parts selection list
  6. Select a part.
  7. Press the Enter key.

    The Parts Order Entry window opens.
    Order entry screen with quantity specified

  8. Enter a quantity.
  9. Press the Enter key.
  10. Continue ordering one or two more parts.
  11. Press command key F6 to accept the order.

    The application works the same way as before in a 5250 environment; but the application now has a browser user interface.

You have launched the WebFacing application, prompted for a customer, selected a customer from the list of customers, prompted for a part, selected a part from a list of parts and entered a quantity for a part and now you are ready to begin Exercise 4.3: Testing the help support.