Tutorials > Program model > Use Struts tags, action forms, and validation
Test the new implementation of the Contact Us view
This section refers to testing the new implementation of the Contact Us view.
Procedure
- 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.
- Navigate to the Stores > WebContent > ConsumerDirect_name directory.
- Right-click the index.jsp file and select Run > Run on Server.
- A message might display asking you to select a server. Select Choose an existing server and click Finish.
- 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
- On the store locale selection page that is displayed in the Web browser, click United States English.
- At the bottom of the store United States English home page that is displayed, click Contact Us.
- You should see the custom Contact Us page with an input form, as shown in the following figure:
- Type the name in the Name field. You can leave the other fields blank. Click Submit.
- You should see the Contact Us Acknowledgement page display with the name obtained from the input form, similar to the following: