I have this code in JSP:
У меня <c:forEach items="${storageListStorage+shopId}" var="storage"> <tr> <td><c:out value="${storage.productDto.categoryDto.nameCategory}"> </c:out></td> <td><c:out value="${storage.productDto.brand}"> </c:out></td> <td><c:out value="${storage.productDto.nameProduct}"> </c:out></td> <td><c:out value="${storage.amount}"> </c:out></td> <td><c:out value="${storage.shopDto.id}"> </c:out></td> </tr> </c:forEach>
How to get the value of two variables from the session to items? In storageListStorage, I have a list and, depending on the shopId, the corresponding list should be displayed. With this syntax: items="${storageListStorage+shopId}" , I items="${storageListStorage+shopId}" error. If I write just items="${storageListStorage1} , then everything works. Who can suggest a solution?