Commit 3d6c796d by Patryk Czarnik

products5 - uzupełniony styl (ramki)

parent 07f2f772
...@@ -13,11 +13,16 @@ ...@@ -13,11 +13,16 @@
<jsp:useBean id="productBean" class="sklep.web.ProductBean"/> <jsp:useBean id="productBean" class="sklep.web.ProductBean"/>
<ul> <c:forEach var="p" items="${productBean.allProducts}">
<c:forEach var="product" items="${productBean.allProducts}"> <div class="product">
<li><strong>${product.productName}</strong> za cenę ${product.price}</li> <h3>${p.productName}</h3>
<div class="price">Cena: ${p.price}</div>
<div class="price">VAT ${p.vat * 100}%</div>
<c:if test="${not empty p.description}">
<p>${p.description}</p>
</c:if>
</div>
</c:forEach> </c:forEach>
</ul>
</body> </body>
</html> </html>
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment