Exercise 2.5: Specifying the CL command to launch the application

Before you begin, you must complete Exercise 2.4: Selecting display file members to convert.

You will now provide the information that will allow the WebFacing Web Project wizard to create the initial index.jsp page to start the Order Entry application. Do you remember what you typed on the command line to start the Order Entry application in the 5250 emulation session during the first exercise in Module 1. Reviewing the 5250 order entry application? In case you forgot; it was: CALL ORDENTR

Why should you remember? The WebFacing run time needs to know the invocation command for your application in order to send this invocation command to the iSeries server to start your application from the browser. The page in the WebFacing Web Project wizard will allow you to specify the necessary information CL command and Sign on information.
WebFacing project wizard, specify CL command and Sign on information page

To specify the CL commands:

  1. In the CL command field, type CALL ORDENTR
  2. In the Command Label field, type Order Entry Application.
    Note:
    If you don't type anything into the Command Label field, the CL command input will be copied into this field.
  3. Leave the default value INV1 in the Invocation name field.
  4. Click the Specify OS/400(R) signon values radio button.

    This will automatically apply the user ID and password you used when you connected to your iSeries server in the previous dialog for selecting source members for invocation of this application. You will use this setup here for testing purposes to make it easier for you to start the Order Entry application without specifying the authentication information. Don't worry about security in your production environment, this can be easily changed later and you will see how to do this later in this tutorial.

  5. Click Add on the right side of the page.
    Note:
    Make sure the text and command you typed into the fields are actually shown in the CL Command table at the bottom of the page.
  6. Click Next at the bottom of the wizard page.

    The Choose a Web Style page opens.

You have specified a CL command to invoke the application and the application signon values and now you are ready to begin Exercise 2.6: Selecting a Web style.