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
-
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:
- Open the following file:
- WC_eardir/Stores.war/storedir/Layouts/CategoryNavigationResults.jsp
- Find the following
snippet:
<c:when test="${!empty WCParam.searchTerm || !empty WCParam.manufacturer || !empty WCParam.facet || !empty WCParam.metaData}">
- Replace it with the following
snippet:
<c:when test="${!empty WCParam.searchTerm || !empty WCParam.manufacturer || !empty WCParam.filterTerm || !empty WCParam.facet || !empty WCParam.metaData}">
- Save your changes and close the file.
- Open the following file:
- WC_eardir/Stores.war/storedir/Layouts/SearchBasedCategoryPage.jsp
- Find the following
snippet:
<c:when test = "${empty WCParam.searchTerm && empty WCParam.manufacturer && empty WCParam.facet && empty WCParam.metaData}">
- Replace it with the following
snippet:
<c:when test = "${empty WCParam.searchTerm && empty WCParam.manufacturer && empty WCParam.facet && empty WCParam.filterTerm && empty WCParam.metaData}">
- Save your changes and close the file.
- Deploy the changes for the JSP files you updated. For more information, see Deploying J2EE assets for a single file.
- Open the following file:
-
If you are migrating from WebSphere Commerce Version 7 Feature Pack 6 or lower, update your
storefront JSP files:
- 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
- Find the following
snippet:
<%@ page import="org.apache.solr.client.solrj.impl.CommonsHttpSolrServer" %>
- Replace it with the following
snippet:
<%@ page import="org.apache.solr.client.solrj.impl.HttpSolrServer" %>
- Find the following
snippet:
if(solrServer instanceof CommonsHttpSolrServer ){ serverURL = ((CommonsHttpSolrServer )solrServer).getBaseURL();
- Replace it with the following
snippet:
if(solrServer instanceof HttpSolrServer){ serverURL = ((HttpSolrServer)solrServer).getBaseURL();
- Save your changes and close the file.
- Deploy the changes for the JSP files you updated. For more information, see Deploying J2EE assets for a single file.
- Open the following file: