if ("POST".equals(request.getMethod())) { //NOI18N
// Handle saving customer data and such things
- // "Walk" over all products
- for (final Product product : app.getProducts()) {
- // Is it choosen?
- if (app.isProductChoosen(product, request, session)) {
- // Mark product as ordered
- app.markProductAsOrdered(product, session);
- }
- }
// Redirect to proper URL
// @TODO Commented out for developing:
//response.sendRedirect(request.getContextPath() + "/finished.jsp");
-%>
-<jsp:useBean id="customer" scope="session" class="org.mxchange.pizzaapplication.customer.bean.PizzaServiceCustomerBean" type="CustomerBean" />
-<jsp:setProperty name="customer" property="*" />
-<jsp:forward page="../finished.jsp" />
-<%
}
%>
// Redirect to proper URL
// @TODO Commented out for developing:
//response.sendRedirect(request.getContextPath() + "/finished.jsp");
+%>
+<jsp:useBean id="customer" scope="session" class="org.mxchange.pizzaapplication.customer.bean.PizzaServiceCustomerBean" type="CustomerBean" />
+<jsp:setProperty name="customer" property="*" />
+<jsp:forward page="../finished.jsp" />
+<%
}
%>