<%-- Document : finished Created on : 04.08.2015, 10:55:47 Author : Roland Haeder --%> <%--<%@page errorPage="errorHandler.jsp" %>--%> <%@page contentType="text/html" pageEncoding="UTF-8"%> <%@page import="java.lang.reflect.Field"%> <%@page import="java.util.Map"%> <%@page import="java.util.Iterator"%> <%@page import="org.mxchange.pizzaapplication.application.PizzaApplication"%> <%@page import="org.mxchange.pizzaapplication.application.PizzaServiceApplication"%> <%@page import="org.mxchange.pizzaapplication.beans.CustomerBean" %> <%@page import="org.mxchange.pizzaapplication.product.Product"%> <% // Init application instance PizzaApplication app = PizzaServiceApplication.getInstance(application); %> <%=PizzaServiceApplication.MAIN_TITLE%> - Vielen Dank!

Folgendes haben Sie bestellt:

<% // Get Iterator Iterator iterator = app.getAvailableProducts(); // "Walk" through all products and unmark them as ordered while (iterator.hasNext()) { // Get product instance Product product = iterator.next(); %> <% } %>
Bestellen? Anzahl: Produkt: Einzelpreis: Zwischensumme:
<%=app.getPrintableChoosenFromRequestSession(product, request, session)%> <%=app.handleAmountFromRequestSession(product, request, session)%> <%=product.getTitle()%> <%=product.getPrice()%> <%=app.getTotalPositionPriceFromRequestSession(product, request, session)%>
Menge: <%=app.calculateTotalAmount(request, session)%>   Gesamtpreis: <%=app.calculateTotalPrice(request, session)%>
Ihre Daten:
<% // Debug message app.getLogger().debug("customer=" + customer); // Get iterator on all fields/attributes Iterator> fieldIterator = customer.iterator(); %>
    <% while (fieldIterator.hasNext()) { Map.Entry entry = fieldIterator.next(); %>
  • <%=entry.getKey().getName()%> set to: <%=entry.getValue()%>
  • <% } %>