Advertisement
Guest User

Untitled

a guest
Dec 3rd, 2016
66
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.82 KB | None | 0 0
  1. <?xml version="1.0" encoding="ISO-8859-1" ?>
  2. <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
  3. pageEncoding="ISO-8859-1"%>
  4. <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
  5. <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
  6. <html xmlns="http://www.w3.org/1999/xhtml">
  7. <head>
  8. <link rel="stylesheet"
  9. href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
  10. integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u"
  11. crossorigin="anonymous"/>
  12. <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
  13. <title>Checkout</title>
  14. </head>
  15. <body>
  16.  
  17. <div class="page-header">
  18. <h2>Your shopping cart</h2>
  19. </div>
  20.  
  21.  
  22. <div class="container">
  23. <table class="table table-bordered table-striped table-hover">
  24. <tr>
  25. <th>Name</th>
  26. <th>Price</th>
  27. <th>Quantity</th>
  28. <th>Total</th>
  29. </tr>
  30.  
  31. <c:forEach items="${cartItems}" var="cart">
  32. <tr>
  33. <td>${cart.name}</td>
  34. <td>${cart.price}</td>
  35. <td>${cart.quantity}</td>
  36. <td >${cart.eachTotal}</td>
  37. </tr>
  38. </c:forEach>
  39. </table>
  40. <p>Your total price is: ${total}</p>
  41. </div>
  42. <p>Your total price is: ${total}</p>
  43.  
  44. <form action="Checkout" method="post">
  45. Name: <input type="text" name="name" /><br/>
  46. Email: <input type="text" name="email" /><br/>
  47. <input type="submit" name="add" value="Add" />
  48. </form>
  49. <c:if test="${not empty invalid}">
  50. <p class="well-sm bg-danger">${invalid}</p>
  51. </c:if>
  52.  
  53. <a href="Store"><button type="submit" class="btn btn-default">Go to store</button></a>
  54. <!-- <a href="Checkout"><button type="submit" class="btn btn-default">Complete Purchase</button></a> -->
  55. </body>
  56. </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement