Advertisement
chrisenoch

index.jsp

Oct 3rd, 2019
118
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.87 KB | None | 0 0
  1. <!DOCTYPE html>
  2. <html>
  3. <head>
  4. <meta charset="utf-8">
  5. <title>Murach's Java Servlets and JSP</title>
  6. <link rel="stylesheet" href="styles/main.css" type="text/css"/>
  7. </head>
  8. <body>
  9.  
  10. <h1>CD list</h1>
  11. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %>
  12. <table>
  13. <tr>
  14. <th>Description</th>
  15. <th class="right">Price</th>
  16. <th>&nbsp;</th>
  17. </tr>
  18.  
  19. <c:forEach var="product" items="${products}">
  20. <tr>
  21. <td><c:out value='${product.description}'/></td>
  22. <td class="right">${product.priceCurrencyFormat}</td>
  23. <td><form action="cart" method="post">
  24. <input type="hidden" name="productCode" value="<c:out value='${product.code}'/>">
  25. <input type="submit" value="Add To Cart">
  26. </form></td>
  27. </tr>
  28. </c:forEach>
  29. </table>
  30. </body>
  31. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement