JSP code snippet: Store catalog display

This JSP code snippet displays all available catalogs (master catalog and sales catalogs) associated with a store. It uses the StoreDataBean to retrieve all the CatalogDataBeans that contain the catalog information.

Prerequisites

  1. Your store must have at least one master catalog and one sales catalog.
  2. The properties file used by this snippet is WCDE_installdir/samples/Snippets/properties/Catalog/CatalogJSPCodeSnippetText.properties.

You may want to copy the properties to the proper location for your store, for example, WCDE_installdir/workspace/Stores/Web Content/WEB_INF/classes/storedir or merge it with your own properties files.

Usage

  1. Copy and paste the code from the snippet to your store's home page. Using ConsumerDirect as an example, copy and paste the code from the snippet into WCDE_installdir/workspace/Stores/Web Content/ConsumerDirect/include/styles/style1/CachedSidebarDisplay.jsp, if you are using style1.
  2. To use this snippet in your production environment, copy your JSP file to your production server. Continuing the ConsumerDirect example, copy the file in the previous step to the following directory on your production server: WAS_installdir/installedApps/cellname/Enterprise_app_name.ear/Stores.war/ConsumerDirect/include/styles/style1/CachedSidebarDisplay.jsp.

Feedback