]> git.mxchange.org Git - pizzaservice-war.git/blobdiff - web/index.jsp
Continued with project:
[pizzaservice-war.git] / web / index.jsp
index 05afdbfb1d0bb42c9014a18ff32aa53eeb3223c7..31610d6b9dcd9f1e70227dc4d116b9d0a06a3f79 100644 (file)
 
                                        <tbody class="table_body">
                                                <%
+                                               // Get Iterator
+                                               Iterator<Product> iterator = app.getAvailableProducts();
+
                                                // "Walk" through all products and unmark them as ordered
-                                               for (final Product product : app.getProducts()) {
+                                               while (iterator.hasNext()) {
+                                                       // Get product instance
+                                                       Product product = iterator.next();
+
                                                        // Unmark as ordered
                                                        app.unmarkProductAsOrdered(product, session);
                                                        %>