Customize store configuration
Customize the storefront assets or store functionality by changing the Store server configuration, or by modifying or extending the store JavaServer Pages (JSP files) or Spring-based model-view-controller (MVC).
Task info
Pages on the storefront are generated by JSP files. JSP files are returned by Spring views based on user interactions on the storefront as interpreted by Spring action and view controllers on the Store server.
- Spring action controllers interface with the Transaction Server and Search server through REST services based on the REST template.
- Spring view controllers forward to Spring views.
- Spring views return JSP files.
- JSP files render content to be returned to the browser.
To modify business logic, apply customizations on the Customization server. Apply any changes on your Store server required to transmit or display these customizations. These required changes could include modifying the REST template, Spring controllers, and storefront assets.
To modify how the storefront is presented to users, JSP files can be created or customized from the default JSP files provided. JSP file dependencies must also be considered, and can be included by packaging them alongside the custom JSP within the custom store web archive, or by pointing to their location within the IBM stores web archive.
In these tasks, you modify the store files to change the behavior, appearance, and functionality of the storefront. This customization is done by modifying, or adding and extending existing store files into the store assets WAR (crs-web.war). Once tested, built, and deployed, these changes appear and function on our production store environment. Customization of the store might include:
- Expansion or modification of the Spring MVC configuration and REST template to extend storefront customization beyond the Store server.
- Creation or modification of store pages, in support of a larger customization project, or to suit individual business requirements:
- Creation of new or modified page and widget JSP files.
- Creation or customization of Spring views used to modify the security properties of store pages and return standard or custom store JSP files.
- Customizing the store Spring MVC configuration
The standard configuration for theStore server Spring-based model-view-controller (MVC) is deployed to the stores web archive (crs-web.war). Extend or modify this configuration to allow for customizations to function on the storefront.- Adding or modifying REST templates
For Spring action controller customizations to communicate with the Transaction Server and Search server, their additions and customizations must be converted into structured REST messages. The REST template maps each action controller method to the appropriate REST call over HTTP. Therefore, any modifications to default actions, or any additional action controllers or action controller methods must have corresponding REST template mappings.