Creating a WebFacing project

The first thing you need to do is create a WebFacing project and specify the relevant CL commands. To create the WebFacing project:

  1. In the workbench, switch to the WebFacing perspective by clicking one of the perspective icons down the left side of the workspace, or by clicking Window > Open Perspective > Other > WebFacing and then clicking OK.
  2. Create a new WebFacing project by clicking File > New > WebFacing project.
  3. Name the project Project501.
  4. Click the Existing radio button beside Enterprise Application Project .
  5. Enter SVStoreEAR in the value in the Existing project name field; not that the value is case-sensitive. Click Next.
  6. For the J2EE level drop-down list, select 1.3. Click Next.
  7. In the Connection field, the name of your iSeries server should be filled in automatically. Otherwise, click New and enter the name of your iSeries server in the dialog, and click Finish.
  8. Click Refresh DDS list and enter your password and user ID in the pop-up dialog to refresh the list.
  9. In the generated list of libraries, expand RETAILSTOR.
  10. Click QDDSSRC and then click the right arrow (>>) to move the files over.
  11. Click Next twice, until you arrive at the Specify CL commands page.

    Now you need to add a command and command label for the administrator:

  12. In the CL command field, enter call call viewinvent.
  13. In the Command label field, delete any existing value and enter View inventory.
  14. Select the Sign on with specified values radio button.
  15. Click Add and note the addition in the list at the bottom of the window.

    Now you need to add a second command and command label for the customer:

  16. In the CL command field, delete the existing value and enter call vieworder.
  17. In the Command label field, delete the existing value and enter View orders.
  18. Select the Prompt for signon radio button.
  19. Click Add and note the addition in the list at the bottom of the window. Click Next.
  20. On the Choose a Web style window, scroll through the styles to see what is available. Because we need to retrieve information from this style later on, for this module select avenue. Click Next.
  21. Verify that the No. I only want to create the project now check box is selected and click Finish.
  22. If you see a Repair Server Configuration message, click OK. This message is just to confirm that you want the project added to the SVStoreEAR file.

Because you are constructing Project501 as a mirror of the complete SV000501 project, you now need to copy some of the image files from SV000501 into Project501, so that Project501 displays correctly. (If you want, however, you can add your own images for the interface.) To copy the images:

  1. Switch to the Web perspective.
  2. In the Navigator view, expand SV000501 > Web Content > images.
  3. (Optional) Expand generated to take note of all the images you are importing into the project.
  4. Right-click generated and select Copy.
  5. Scroll up in the Navigator view until you can see Project501 again.
  6. Expand Project501 > Web Content.
  7. Right-click the images folder and select Paste from the pop-up menu.
  8. Now, the generated folder exists for Project501. Expand generated to take note of the images you added.


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