Tutorials > Program model > Use Struts tags, action forms, and validation

< Previous | Next >


Test the new implementation of the Contact Us view

This section refers to testing the new implementation of the Contact Us view.


Procedure

  1. In the Server view, right-click WebSphere Commerce Test Server and select Start if the server is stopped or Restart > Start if the server is running.

  2. Navigate to the Stores > WebContent > ConsumerDirect_name directory.

  3. Right-click the index.jsp file and select Run > Run on Server.

  4. A message might display asking you to select a server. Select Choose an existing server and click Finish.

  5. Alternatively, to directly launch the index.jsp, you can enter the following URL directly in the Web browser:

    http://localhost/webapp/wcs/stores/servlet/ConsumerDirect/index.jsp
    

  6. On the store locale selection page that is displayed in the Web browser, click United States English.

  7. At the bottom of the store United States English home page that is displayed, click Contact Us.

  8. You should see the custom Contact Us page with an input form, as shown in the following figure:

  9. Type the name in the Name field. You can leave the other fields blank. Click Submit.

  10. You should see the Contact Us Acknowledgement page display with the name obtained from the input form, similar to the following:

< Previous | Next >


+

Search Tips   |   Advanced Search