The code for the final conformation (given in Listing 12.10) itself is a duplicate of the shopping cart page, with the following changes:
The quantity is always static rather than a fill-in value.
Now that the application knows where it's being shipped to, you can have it add tax and shipping to the totals.
The form submits to the credit card authorization page.
<%@ include file="/jsp/cust/AutoLogin.jsp" %> <%@ page import="com.bfg.product.Product" %> <%@ page import="java.util.Iterator" %> <%@ page import="com.bfg.cart.CartItem" %> <jsp:useBean id="orderaddr" class="com.bfg.customer.Address" scope="session"/> <jsp:useBean id="ordercredit" class="com.bfg.customer.CreditCard" scope="session"/> ...