]> git.mxchange.org Git - pizzaservice-war.git/blobdiff - web/finished.jsp
Continued with project:
[pizzaservice-war.git] / web / finished.jsp
index 012a8282b2aded8b2c842be999b9d183fb324b34..c2ca53b6a45f09b73115d08b294a29ec37b82ed3 100644 (file)
@@ -26,7 +26,7 @@
 <html xmlns="http://www.w3.org/1999/xhtml" xml:lang="de" lang="de">
        <head>
                <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
-               <link rel="stylesheet" href="style.css" type="text/css"/>
+               <link rel="stylesheet" href="<%=request.getContextPath()%>/style.css" type="text/css"/>
                <title><%=PizzaServiceApplication.MAIN_TITLE%> - Vielen Dank!</title>
        </head>
 
@@ -35,9 +35,7 @@
                        <h1><%=PizzaServiceApplication.MAIN_TITLE%> - Vielen Dank!</h1>
                </div>
 
-               <div id="menu">
-                       <jsp:include page="/static/menu.jsp" flush="true" />
-               </div>
+               <jsp:include page="/static/menu.jsp" flush="true" />
 
                <div id="content_outer">
                        <div id="content_title">
                                        </thead>
                                        <tbody class="table_body">
                                                <%
-                                               // Get iterator from products
-                                               Iterator<Map.Entry<String, Product>> iterator = app.getProductsIterator();
-
-                                               // Iterate over all
-                                               while (iterator.hasNext()) {
-                                                       // Get entry
-                                                       Map.Entry<String, Product> entry = iterator.next();
-
-                                                       // Get product
-                                                       Product product = entry.getValue();
-
-                                                       // Mark product as ordered
-                                                       app.markProductAsOrdered(product, session);
+                                               // "Walk" over all products
+                                               for (final Product product : app.getProducts()) {
                                                        %>
                                                        <tr>
                                                                <td>
                                                </tr>
 
                                                <tr>
-                                                       <td colspan="5" class="table_header">
+                                                       <td colspan="5" class="table_row">
                                                                <%
+                                                               // Debug message
+                                                               app.getLogger().debug("customer=" + customer);
+
+                                                               // Get iterator on all fields/attributes
                                                                Iterator<Map.Entry<Field, Object>> fieldIterator = customer.iterator();
                                                                %>
                                                                <ul>