Running the application in the workbench

At this point you can run the application in the WebSphere Test Environment in the workbench. When you are satisfied that it is running properly, you can export the EAR file to the iSeries server and deploy it to the iSeries WebSphere Application Server.

Running the application as a customer in the workbench

As a customer, you would begin on the shopping Web page for the retail store, browse through items and then order a quantity and size.

Note: You might encounter problems if you try to run the application behind a firewall, because your web.xml file looks for the following file: http://java.sun.com/j2ee/dtds/web-app_2_2.dtd. To solve this problem, before you run the application, change the DOCTYPE statement in all of your web.xml files to:

!DOCTYPE web-app PUBLIC "-//Sun Microsystems, Inc.//DTD Web Application 2.2//EN" 
"x:/WDSC/eclipse/plugins/com.ibm.etools.j2ee/dtds/web-app_2_2.dtd"
 

where x:/wdsc is the directory where you installed the product. You can usually find your web.xml files under Project name > Web Content > WEB-INF. After you open the file, click the Source tab to edit the file directly.

To run the application as a customer in the workbench:

  1. In the Web perspective, expand SV001585 > Web Content.
  2. Right-click shop.html and select Run on Server. This launches the application in the workbench browser.
  3. Click Finish.
  4. Enter the application by clicking the image of the T-shirts.
  5. Try entering values on the following page, pretending that you are a customer ordering a Pullover or a Bomber Jacket, selecting the size and quantity, and adding items to your basket:
    This screen capture displays items from as store that you can order by quantity and size, and purchase by selecting the "Add to Basket" button.

The page that displays the text "your order has been processed" is the last page of the sample. When your are satisfied with the sample, you can close the browser.

Running the application as an administrator in the workbench

As an administrator, you would begin on the administration Web page for the retail store, and check on orders or store inventory. To run the application as an administrator in the workbench:

  1. In the Web perspective, expand SV000618 > Web Content.
  2. Right-click index.html and select Run on Server. This launches the application in the workbench browser.
  3. Click the icon to the left of View store inventory to display the following page, as if you were an administrator deciding what to buy for your store:
    This screen capture shows the four options available for an administrator: View outstanding orders, view store inventory, order an item from the wholesales, and logout. An icon is beside each description, which takes you to the appropriate page.
    Try clicking the icons to display the administrative pages.


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