Tutorials > Customize the Consumer Direct sample store > Customizing the consumer direct sample store using snippets
Example: Using JSP code and object snippets
This section describes an example using JSP code and object snippets.
In the Tutorial: Customizing the consumer direct sample store using snippets, the following lines of code are added to Stores/MyApparelStore/include/styles/style1/CachedSidebarDisplay.jsp. The lines are noted here to demonstrate how to use JSP code and object snippets.
<!--Start Sales Catalog JSP code snippet --> <tr> <td> <c:import url="${jspStoreDir}include/StoreCatalogDisplay.jsp" /> </td> </tr> <!--End Sales Catalog JSP code snippet --> <!--Start e-Marketing Spot JSP code snippet --> <tr> <td> <c:import url="${jspStoreDir}include/eMarketingSpotDisplay.jsp"> <c:param name="emsName" value="MyApparelSpot" /> <c:param name="catalogId" value="${WCParam.catalogId}" /> </c:import> </td> </tr> <!--End e-Marketing Spot JSP code snippet --> <!--Begin CatalogEntryThumbnailDisplay object snippet --> <tr> <td> <!--Create a CatalogEntryDataBean and populate it with the catalog entry we want to display. --> <wcbase:useBean classname="com.ibm.commerce.catalog.beans.CatalogEntryDataBean" scope="page"> <c:set value="11212" target="${catEntryBean}" property="catalogEntryID" /> </wcbase:useBean> <!--Set variables to be sent to the CatalogEntryThumbnailDisplay.jspf object snippet --> <c:set var="catEntry" value="${catEntryBean}" /> <c:set var="hideDiscounts" value="true" /> <c:set var="hidePrice" value="true" /> <%@ include file="../images/locale/screensnap/../Snippets/ReusableObjects/CatalogEntryThumbnailDisplay.jspf" %> </td> </tr> <!--End CatalogEntryThumbnailDisplay object snippet-->