Updating your storefront JSP files

If you are migrating from WebSphere Commerce Version 7 Feature Pack 6 or lower, update your storefront JSP files.

Procedure

  1. If you are migrating from WebSphere Commerce Version 7 Feature Pack 6, update your storefront JSP files to ensure that the advanced search feature works correctly:
    1. Open the following file:
      • WC_eardir/Stores.war/storedir/Layouts/CategoryNavigationResults.jsp
    2. Find the following snippet:
      
      <c:when test="${!empty WCParam.searchTerm || !empty WCParam.manufacturer || !empty WCParam.facet || !empty WCParam.metaData}">
      
    3. Replace it with the following snippet:
      
      <c:when test="${!empty WCParam.searchTerm || !empty WCParam.manufacturer || !empty WCParam.filterTerm || !empty WCParam.facet || !empty WCParam.metaData}">
      
    4. Save your changes and close the file.
    5. Open the following file:
      • WC_eardir/Stores.war/storedir/Layouts/SearchBasedCategoryPage.jsp
    6. Find the following snippet:
      
      <c:when test = "${empty WCParam.searchTerm && empty WCParam.manufacturer && empty WCParam.facet && empty WCParam.metaData}">
      
    7. Replace it with the following snippet:
      
      <c:when test = "${empty WCParam.searchTerm && empty WCParam.manufacturer && empty WCParam.facet && empty WCParam.filterTerm && empty WCParam.metaData}">
      
    8. Save your changes and close the file.
    9. Deploy the changes for the JSP files you updated. For more information, see Deploying J2EE assets for a single file.
  2. If you are migrating from WebSphere Commerce Version 7 Feature Pack 6 or lower, update your storefront JSP files:
    1. Open the following file:
      For the Aurora starter store:
      • WC_eardir/Stores.war/storedir/Widgets/Search/JSTLEnvironmentSetupExtForSearch.jspf
      • WC_eardir/Stores.war/storedir/Widgets/Search/AutoSuggestSerialize.jsp
    2. Find the following snippet:
      
      <%@ page import="org.apache.solr.client.solrj.impl.CommonsHttpSolrServer" %>
      
    3. Replace it with the following snippet:
      
      <%@ page import="org.apache.solr.client.solrj.impl.HttpSolrServer" %>
      
    4. Find the following snippet:
      
      if(solrServer instanceof CommonsHttpSolrServer ){
                  serverURL = ((CommonsHttpSolrServer )solrServer).getBaseURL();
      
    5. Replace it with the following snippet:
      
      if(solrServer instanceof HttpSolrServer){
                  serverURL = ((HttpSolrServer)solrServer).getBaseURL();
      
    6. Save your changes and close the file.
    7. Deploy the changes for the JSP files you updated. For more information, see Deploying J2EE assets for a single file.