%--
Document : order
Created on : 07.08.2015, 14:58:21
Author : Roland Haeder
--%>
<%--<%@page errorPage="errorHandler.jsp" %>--%>
<%@page contentType="text/html" pageEncoding="UTF-8"%>
<%@page import="org.mxchange.pizzaapplication.application.PizzaServiceApplication"%>
<%@page import="org.mxchange.pizzaapplication.application.PizzaApplication"%>
<%@page import="org.mxchange.pizzaapplication.beans.CustomerBean" %>
<%@page import="org.mxchange.pizzaapplication.product.Product"%>
<%
// Init application instance
PizzaApplication app = PizzaServiceApplication.getInstance(application);
// Is it post?
if ("POST".equals(request.getMethod())) { //NOI18N
// @TODO Handle saving customer data and such things
// Mark all choosen products as ordered
app.markAllChoosenProductsAsOrdered(request, session);
// Redirect to proper URL
// @TODO Commented out for developing:
//response.sendRedirect(request.getContextPath() + "/finished.jsp");
%>