Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?xml version="1.0" encoding="ISO-8859-1" ?>
- <%@ page language="java" contentType="text/html; charset=ISO-8859-1"
- pageEncoding="ISO-8859-1"%>
- <%@ taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core"%>
- <!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
- <html xmlns="http://www.w3.org/1999/xhtml">
- <head>
- <link rel="stylesheet"
- href="https://maxcdn.bootstrapcdn.com/bootstrap/3.3.7/css/bootstrap.min.css"
- integrity="sha384-BVYiiSIFeK1dGmJRAkycuHAHRg32OmUcww7on3RYdg4Va+PmSTsz/K68vbdEjh4u"
- crossorigin="anonymous"/>
- <meta http-equiv="Content-Type" content="text/html; charset=ISO-8859-1" />
- <title>Checkout</title>
- </head>
- <body>
- <div class="page-header">
- <h2>Your shopping cart</h2>
- </div>
- <div class="container">
- <table class="table table-bordered table-striped table-hover">
- <tr>
- <th>Name</th>
- <th>Price</th>
- <th>Quantity</th>
- <th>Total</th>
- </tr>
- <c:forEach items="${cartItems}" var="cart">
- <tr>
- <td>${cart.name}</td>
- <td>${cart.price}</td>
- <td>${cart.quantity}</td>
- <td >${cart.eachTotal}</td>
- </tr>
- </c:forEach>
- </table>
- <p>Your total price is: ${total}</p>
- </div>
- <p>Your total price is: ${total}</p>
- <form action="Checkout" method="post">
- Name: <input type="text" name="name" /><br/>
- Email: <input type="text" name="email" /><br/>
- <input type="submit" name="add" value="Add" />
- </form>
- <c:if test="${not empty invalid}">
- <p class="well-sm bg-danger">${invalid}</p>
- </c:if>
- <a href="Store"><button type="submit" class="btn btn-default">Go to store</button></a>
- <!-- <a href="Checkout"><button type="submit" class="btn btn-default">Complete Purchase</button></a> -->
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement