Several approaches are available to generate/fetch the promotional content and product data from the targeters for use on the homepage of CRS-M:
The Oracle ATG Web Commerce REST module could be used to call methods on, or to fetch, custom server-side components that would aggregate the data required for the homepage into the required response format. Making these calls through REST could automatically format the output as JSON. These components could use the out of the box tools such as
TargetingServicesto easily generate targeting results.A combination of
TargetingServicesand REST features such as filtering, aliasing andPropertyCustomizerscould be used to achieve the same result.JSPs that generate JSON from ATG servlet bean responses using the JSON tag library could be utilized. This technique facilitates the reuse of out of the box servlet beans, as well as any custom servlet beans and/or page code that may already exist.
CRS-M demonstrates the JSP generation of JSON approach. Your method of choice however, should be determined based on your specific business needs and existing or future application architecture.

