Feature Pack 6 or later

Adding image map support to existing Madisons starter store e-Marketing Spot JSP files

Before you can display marketing content with multiple click actions in an e-Marketing Spot, you must add support for multiple click actions in the e-Marketing Spot JSP file.

About this task

The procedure for adding image map support to an existing e-Marketing Spot JSP file can differ depending on whether your store is based on the Aurora or the Madions starter store model. If you are adding support for existing Madisons starter store e-Marketing Spot JSP files, see Adding image map support to existing Aurora starter store e-Marketing Spot JSP files

Procedure

  1. In your file management program, navigate to the directory that contains the JSP file for your e-Marketing Spot.
    • SolarisLinuxAIXWindowsWC_eardir\Stores.war\store_dir\Snippets\Marketing\ESpot\

      For example, if you want to add support to the ContentAreaESpot.jsp file, you can locate this file in the following directory: WC_eardir\Stores.war\store_dir\Widgets\ESpot\

    • WebSphere Commerce DeveloperWorkspace_dir\Stores\WebContent\store_dir\Snippets\Marketing\ESpot\

      For example, if you want to add support to the ContentAreaESpot.jsp file, you can locate this file in the following directory: Workspace_dir\Stores\WebContent\store_dir\Snippets\Marketing\ESpot\

    where store_dir is the directory name for your store.
  2. Locate the JSP file for the e-Marketing Spot that you want to update to support multiple click actions.
    For example, ContentAreaESpot.jsp. Open the file for editing.
  3. Navigate to the samples directory that contains the sample WebServiceeMarketingSpotDisplay.jsp file. This file contains sample code that supports the use of multiple click actions in marketing content. Open this file to view its contents.
    This file can be found in the following directory:
    • SolarisLinuxAIXWindowsWC_installdir\components\foundation\samples\Snippets\web\Marketing\Campaigns\
    • WebSphere Commerce DeveloperWCDE_installdir\components\foundation\samples\Snippets\web\Marketing\Campaigns\
  4. In the WebServiceeMarketingSpotDisplay.jsp file, locate the sections of code that begins with the following lines of code:
    <%-- BEGIN Marketing Content Image Map--%>
    
    And ends with the following lines of code:
    <%-- END Marketing Content Image Map --%>
    
  5. Copy and paste the code between the preceding sections of code in the corresponding locations in your e-Marketing Spot JSP file. This code adds support for the use of multiple click actions in the form of an image map in your e-Marketing Spot. Modify the code to match the requirements for your e-Marketing Spot.
    For example, to add this support to the ContentAreaESpot.jsp file, add the code before the following line of code:
    <c:if test="${!empty marketingSpotData.marketingContent.url}">
  6. Save and close your file.

Results

You have added support for image maps to your e-Marketing Spot JSP files.