Closed kliu57 closed 4 months ago
Closes #48
products page update button does not work
when the update button in products page is clicked, it triggers updateproduct() in AdminController.java
updateproduct()
AdminController.java
the ModelAndView can be found in productsUpdate.jsp
productsUpdate.jsp
<c:forEach var="product" items="products">
Closes #48
Problem:
products page update button does not work
Cause:
when the update button in products page is clicked, it triggers
updateproduct()
inAdminController.java
the ModelAndView can be found in
productsUpdate.jsp
<c:forEach var="product" items="products">
is causing the error to be thrown since it should be items="${products}" and not a stringFix:
productsUpdate.jsp
, removed the forEach loop completely, since we add one product to the view and not a list of productsTesting