]> git.mxchange.org Git - pizzaservice-war.git/blobdiff - web/finished.jsp
Continued with project:
[pizzaservice-war.git] / web / finished.jsp
index c2ca53b6a45f09b73115d08b294a29ec37b82ed3..4f574d8b2b4502c9ca000a4697a4e2968fa17b1c 100644 (file)
                                        </thead>
                                        <tbody class="table_body">
                                                <%
-                                               // "Walk" over all products
-                                               for (final Product product : app.getProducts()) {
+                                               // Get Iterator
+                                               Iterator<Product> iterator = app.getAvailableProducts();
+
+                                               // "Walk" through all products and unmark them as ordered
+                                               while (iterator.hasNext()) {
+                                                       // Get product instance
+                                                       Product product = iterator.next();
                                                        %>
                                                        <tr>
                                                                <td>