Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <%@ page language="java" contentType="text/html; charset=UTF-8"
- pageEncoding="UTF-8"%>
- <%--@author Meredith Allen --%>
- <%@ page import="pojos.UserBean,java.util.Date,java.text.DateFormat,java.text.SimpleDateFormat,
- java.util.List,java.util.ArrayList,java.util.Set,java.util.TreeSet,java.util.Map,java.util.HashMap,
- pojos.Product,pojos.CartImpl,javax.servlet.jsp.JspWriter,java.io.IOException,
- java.io.ObjectInputStream,java.io.FileInputStream,java.io.Serializable,
- java.io.ObjectOutputStream,java.io.FileOutputStream,daos.OrdersDAO,pojos.OrderBean" %>
- <%-- Required to indicate that this page will make use of an existing or new session object --%>
- <%@ page session="true" %>
- <!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
- <html>
- <head>
- <meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
- <title>Thank you for your purchase!</title>
- </head>
- <body>
- <%
- HttpSession theSession = request.getSession();
- UserBean theUser = (UserBean)theSession.getAttribute("ThisUserBean");
- CartImpl theCart = (CartImpl)request.getSession().getAttribute("ShoppingCart");
- OrdersDAO odao = new OrdersDAO();
- odao.putOrder(theUser.getUserid(), new Date(), theCart);
- %>
- Thank you!<br>
- The following order has been committed to the database:<br>
- <%= odao.getOrderRows(theUser.getUserid(), theCart.getCartId()) %>
- </body>
- </html>
Advertisement
Add Comment
Please, Sign In to add comment