The directory structure of CRS-M’s JSPs mirrors that of Commerce Reference Store as closely as possible, but mobile-specific JSPs are nested under a “mobile” directory. The name of this directory is configured as the mobile path prefix in atg/store/StoreConfiguration.properties.

For example, the product details JSP for Commerce Reference Store is located at /browse/productDetail.jsp in the Storefront module, while the product details JSP for CRS-M are located at /mobile/browse/productDetail.jsp, also in the Storefront module. Since the designated mobile path prefix for CRS-M is configured to be the string “mobile” by StoreConfiguration.properties, there is a clear mapping from a Commerce Reference Store JSP to an equivalent CRS-M JSP, that is, the Commerce Reference Store path should be prepended with the designated mobile prefix (“mobile”) to determine the CRS-M path for a given page request. You should configure your designated mobile prefix to match your directory structure should you choose to take this approach for your implementation.

Redirects

The mobileSitesMapping and nonMobileSitesMapping properties are set using MobileSitePairsShareableType instead of StoreConfiguration.properties. For a redirect, MobileDetectionInterceptor now uses SiteGroupManager.getOtherSharingSiteIds(String).


Copyright © 1997, 2014 Oracle and/or its affiliates. All rights reserved. Legal Notices