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

< Previous | Next >


Changing the implementation of the Contact Us view

In this step, we will change the mapping of the Contact Us view from the original ContactDisplay.jsp page to the MyContactUsDisplay.jsp page you created in preceding steps.


Procedure

  1. The file struts-config-ext.xml should still be open for editing in the Struts Configuration File editor.

  2. Switch to the Source view.

  3. Search for the ContactView/ ConsumerDirect_storeID string to locate

    <forward className="com.ibm.commerce.struts.ECActionForward" 
             name="ContactView/
    ConsumerDirect_storeID" 
             path="/StoreInfoArea/MyContactUsAckDisplay.jsp"/> 
    

  4. Replace the value of the path attribute with /StoreInfoArea/ MyContactUsDisplay.jsp.

  5. Save the changes, but leave the editor open.

< Previous | Next >


+

Search Tips   |   Advanced Search