Troubleshooting: Error on CachedsubCategorysdisplay.jsp page
After migrating, an extra JSTL tag causes an error.
Problem
When trying to perform actions on the CachedsubCategorysdisplay.jsp page you get the following error:
[12/12/05 15:06:08:828 EST] 0000007a WebApp E SRVE0026E:[ServletError]-
[/AdvancedB2BDirect/ShoppingArea/CatalogSection/CategorySubsection/CachedSubCategoriesDisplay.jsp(54,7)
JSPG0069E: Unmatched end tag found while parsing jsp.
Expecting jsp:root found c:if at [54,7]]: com.ibm.ws.jsp.JspCoreException:
/AdvancedB2BDirect/ShoppingArea/CatalogSection/CategorySubsection/CachedSubCategoriesDisplay.jsp(54,7)
JSPG0069E: Unmatched end tag found while parsing jsp.
Expecting jsp:root found c:if at [54,7]
Solution
The JSP page has an extra JSTL tag that needs to be removed by performing the following steps:
- Copy the
CachedSubCategoriesDisplay.jsp
file found in directory:- WC_eardir/Stores.war/storedir/ShoppingArea/CatalogSection/CategorySubsection
- Edit the copied
CachedSubCategoriesDisplay.jsp
file. Go to the line indicated in the error message, for example line 54, and remove the "/" shown in the following example:<c:if test="${!empty parentCategoryId ||parentCategoryId==''}"/>
- Update the application with this modified JSP file.
- Refer to Stages of deploying customized assets and follow the instructions for packaging a single JSP file and deploying single JSP file.