The first thing you need to do is create a WebFacing project and specify
the relevant CL commands. To create the WebFacing project:
- 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.
- Create a new WebFacing project by clicking File > New > WebFacing
project.
- Name the project Project501.
- Click the Existing radio button beside Enterprise
Application Project .
- Enter SVStoreEAR in the value in the Existing project
name field; not that the value is case-sensitive. Click
Next.
- For the J2EE level drop-down list, select
1.3. Click Next.
- 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.
- Click Refresh DDS list and enter your password and user ID in
the pop-up dialog to refresh the list.
- In the generated list of libraries, expand RETAILSTOR.
- Click QDDSSRC and then click the right arrow (>>) to move the
files over.
- 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:
- In the CL command field, enter call call
viewinvent.
- In the Command label field, delete any existing value and enter
View inventory.
- Select the Sign on with specified values radio button.
- 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:
- In the CL command field, delete the existing value and enter
call vieworder.
- In the Command label field, delete the existing value and enter
View orders.
- Select the Prompt for signon radio button.
- Click Add and note the addition in the list at the bottom of
the window. Click Next.
- 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.
- Verify that the No. I only want to create the project
now check box is selected and click Finish.
- 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:
- Switch to the Web perspective.
- In the Navigator view, expand SV000501 > Web Content >
images.
- (Optional) Expand generated to take note of all the images you
are importing into the project.
- Right-click generated and select Copy.
- Scroll up in the Navigator view until you can see Project501
again.
- Expand Project501 > Web Content.
- Right-click the images folder and select Paste from
the pop-up menu.
- 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 ]
Copyright IBM Corporation 1992, 2003. All Rights Reserved.