Showing posts with label content of Espot in command. Show all posts
Showing posts with label content of Espot in command. Show all posts

Thursday, December 3, 2015

Display Espot data and fetch Espot content in command

Espot display through JSP :
<c:import url="../../include/eMarketingSpotDisplay.jsp">
   <c:param name="emsName" value="EspotName" />
   <c:param name="catalogId" value="${WCParam.catalogId}" />  
</c:import>


Getting content of Espot in command:

String triggerParameters = MarketingUtilClient.createTriggerParametersString(ESPOT_NAME, "", "", "", null); // ESPOT_NAME <-- name of ESPOT
List marketingSpotData = client.getMarketingSpotData(triggerParameters);
MarketingSpotDataTypeImpl mkt = (MarketingSpotDataTypeImpl) marketingSpotData.get(0);


Here Client is: com.ibm.commerce.marketing.facade.client.MarketingFacadeClient