Reviewing the latest sample e-Marketing Spot JSP snippet for Management Center

If your site has already been using Management Center Version 6 Feature Pack 3 or 4 for marketing management, the e-Marketing Spot JSP code on your store pages will work correctly with Management Center Version 7 Marketing tool. While you are not required to make any changes to your existing e-Marketing Spot JSP code, this procedure covers some optional steps to review new customization examples and remove some unnecessary code from existing e-Marketing Spot JSP code.

Procedure

  1. Review some customization examples embedded in the latest sample e-Marketing Spot JSP snippet for Management Center:
    1. Navigate to the latest sample e-Marketing Spot JSP snippet:
      • WebSphere Commerce DeveloperWCDE_installdir\samples\Snippets\web\Marketing\Campaigns\WebServiceeMarketingSpotDisplay.jsp
      • WebSphere Commerce EnterpriseWebSphere Commerce - ExpressWebSphere Commerce ProfessionalWC_installdir\samples\Snippets\web\Marketing\Campaigns\WebServiceeMarketingSpotDisplay.jsp
    2. Open the WebServiceeMarketingSpotDisplay.jsp file in an editor.
    3. Review the examples that have been added as comments in the file. The examples illustrate some potential customization functionality for e-Marketing Spots. To reach the first example, search for the following string:
      <%-- Example of specifying the customer is viewing a particular product.

      Additional examples in the file provide optional code snippets for:

      • Specifying the customer is viewing a set of products
      • Including a value from a specific cookie
      • Including all cookies
      • Including substitution variables
    4. Close the WebServiceeMarketingSpotDisplay.jsp file.
  2. Optional: Remove some lines of code that are no longer required in the existing e-Marketing Spot snippets on your store pages:
    1. Navigate to the include directory at the following location in your development environment:

      WebSphere Commerce DeveloperWCDE_installdir/workspace/Stores/WebContent/StoreDir/include/

    2. Create a backup copy of the eMarketingSpotDisplay.jsp file.
    3. Open the eMarketingSpotDisplay.jsp file.
    4. Remove the following lines of code from the file because they are no longer used:
      <%-- referral url --%>
          <wcf:param name="DM_RefUrl" value="${cookie.REFERRER.value}" />
      <%-- marketing context name value pair parameters --%>
          <c:forEach var="aPair" items="${marketingContext.nameValuePairs}">
              <wcf:param name="${aPair.key}" value="${aPair.value}" />
          </c:forEach>
    5. Save and close the updated eMarketingSpotDisplay.jsp file.
    6. Remove the same lines of code from any additional e-Marketing Spot snippets on your store pages. For example, some sample stores also include the StoreCatalogProductESpot.jsp file.
    7. Test the store to ensure that the updated e-Marketing Spot JSP code is working properly.
    8. Deploy all updated JSP files.