To add an EMarketingSpot bean to a JSP file, creating an e-Marketing Spot, complete the following steps:
- If the appropriate JSP file, storepage.jsp (which could be any
store page, including the home page, the shopcart page, or the product and
category pages, for example), is not already open, open it by completing the
following steps:
- In WebSphere Studio, select the storedir folder, where storedir is the name of your store.
- Double-click the appropriate JSP file. The file opens in Page Designer.
- Ensure that the Normal tab at the bottom of the Page Designer window is selected.
- Add the EMarketingSpot bean to the file. Adding the EMarketingSpot bean
reserves space on the Web page to present dynamic data resulting from campaign
initiatives created in the WebSphere Commerce Accelerator.
- In Page Designer, in the View menu, ensure that Contents Manager is selected.
- In the Contents Pane (the left pane of the Page Designer window), navigate to WCDE_installdir\databeans\lib.
- From the drop-down list, select Java Bean Files (.class; .jar). The available files display in the field below.
- Select wcsclient.jar. Drag and drop the file into the Normal view. The Beans Selection window displays.
- Select com.ibm.commerce.marketingcenter.beans.EMarketingSpot. Click OK. The Attribute window displays.
- In the jsp:useBean tab, in the Scope drop-down list, select request.
- Select the setProperty tab.
- In the Name field, type the name of the e-Marketing Spot. This is required.
- In the maximumNumberOfCatalogEntries field, type the maximum number of products to recommend at one time
- Click Add.
- Click OK. The J icon displays in the Page Designer window.