]> git.mxchange.org Git - pizzaservice-war.git/blobdiff - web/finished.jsp
Continued with project:
[pizzaservice-war.git] / web / finished.jsp
index f8054014ac7a9023b5601b5c324cc258d45b46d9..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>
 
                                        </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>