]> git.mxchange.org Git - pizzaservice-war.git/blobdiff - web/preview.jsp
Continued with project:
[pizzaservice-war.git] / web / preview.jsp
index dd3007826bc0713103e5d6f8f89351ec80c43f8f..ca5a32d7d14f14e58407a0d07829778c30c89dcf 100644 (file)
                                        </thead>
                                        <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 it as ordered
                                                        app.unmarkProductAsOrdered(product, session);
                                                        %>