loading table of contents...

3.4.10. Customizing IBM WebSphere Commerce JSPs

When the CoreMedia Fragment Connector has been installed, the lc:include tag can be used in any JSPs of the Commerce Workspace to include content from the CoreMedia CMS. See Section 5.1.4.2, “The CoreMedia Include Tag” for more details.

The CoreMedia LiveContext 2.0 WebSphere Commerce Project Workspace contains web content like JSP and JavaScript files in the Stores/<STORE_NAME> folder. These files are mostly adapted versions of the JSP files of an original IBM RAD workspace. The CoreMedia customizations are highlighted with the following comment lines:

      <!-- Begin CoreMedia XXX -->
      CoreMedia snippet data
      <!-- END CoreMedia XXX  -->
    

The corresponding files in the IBM RAD workspace are in the workspace/Stores/WebContent/<STORE_NAME> folder.

If you have an Aurora RAD workspace without any customizations, you can copy the CoreMedia LiveContext 2.0 WebSphere Commerce Project Workspace archive content above it. Otherwise, you have to unzip the file and check for each file if you can copy the CoreMedia change into the corresponding file of your IBM RAD workspace.

Example

The CoreMedia archive contains custom Header.jsp and Footer.jsp files. These JSPs contain some include tags, highlighted with comments, to replace the default Aurora store header and footer with CoreMedia page grid placements. The placements contain the navigation and footer elements of the CAE. The original files are located in the folder workspace/Stores/WebContent/<STORE_NAME>/Widgets of the RAD workspace.

In addition CoreMedia JavaScript and CSS that is used by the CAE must be included in the store front. To do so adapt the CoreMedia specific changes in WebContent/<STORE_NAME>/Common/CommonJSToInclude.jspf.