X-Git-Url: https://git.mxchange.org/?a=blobdiff_plain;f=web%2Findex.jsp;h=ec70c2df286c4f59b72d032ef5fe27b60ee9b76c;hb=ee147b754287ac620ffba70f041427a80ea69ae8;hp=f3c27c5a7979f5b48248aaf916f157a20d65049d;hpb=15d48155271344364b297d71ce1413fff97b1c53;p=pizzaservice-war.git diff --git a/web/index.jsp b/web/index.jsp index f3c27c5a..ec70c2df 100644 --- a/web/index.jsp +++ b/web/index.jsp @@ -4,26 +4,29 @@ Author : Roland Haeder --%> -<%@page import="org.mxchange.pizzaapplication.application.PizzaApplication"%> <%--<%@page errorPage="errorHandler.jsp" %>--%> -<%@page import="java.util.Map"%> -<%@page import="java.util.Iterator"%> -<%@page import="org.mxchange.pizzaapplication.beans.PizzaBean"%> -<%@page import="org.mxchange.pizzaapplication.product.Product"%> -<%@page import="org.mxchange.pizzaapplication.basket.Basket"%> -<%@page import="org.mxchange.pizzaapplication.item.basket.BasketItem"%> -<%@page import="org.mxchange.pizzaapplication.item.AddableBasketItem"%> +<%@page import="org.mxchange.pizzaapplication.beans.controller.PizzaBean"%> <%@page contentType="text/html" pageEncoding="UTF-8"%> +<%@taglib prefix="c" uri="http://java.sun.com/jsp/jstl/core" %> <%@taglib prefix="fmt" uri="http://java.sun.com/jsp/jstl/fmt" %> -<%@taglib prefix="basket" uri="http://mxchange.org/pizza-service/tags/basket" %> - - +<%@taglib prefix="basket" uri="http://mxchange.org/jshop/tags/basket" %> + + + + + +<% + // TODO: Can be removed later + controller.init(); +%> + + - + Pizza-Service - Willkommen @@ -38,102 +41,89 @@
-

Folgendes kann bestellt werden:

+

Eingangsseite (dummy):

- + + - - - - - - -
- Bestellen? - - Anzahl: - - Produkt: - - Einzelpreis: -
- - <% - // Get Iterator - Iterator iterator = service.getAvailableProducts(); - - // "Walk" through all products and unmark them as ordered - while (iterator.hasNext()) { - // Get product instance - Product product = iterator.next(); - - // Debug message - product.getLogger().debug("product.itemId=" + product.getItemId()); + + + + Folgendes kann bestellt werden: + + + - // Create an item instance form this product - AddableBasketItem item = basket.getItem(product); - - // Debug message - product.getLogger().debug("item=" + item); - - // Has it been already added to the basket? - if (item != null) { - // Some nice output ... - %> - - - - - - - + + + + + +
- Warenkorb - - <%=item.getAmount()%> - - <%=product.getTitle()%> - - <%=product.getPrice()%> -
+ Bestellen? + + Anzahl: + + Produkt: + + Einzelpreis: +
- <% - // Then skip this item - continue; - } - // Unmark as ordered - service.unmarkProductAsOrdered(product, session); - %> -
- - - - - - - - - -
- - - - - - - <%=product.getTitle()%> - - <%=product.getPrice()%> -
-
- <% - } - %> + + + + + + + + + + + + + +
+ Warenkorb + + ${item.amount} + + ${product.title} + + +
+
+ +
+ + + + + + + + + +
+ + + + + + + ${product.title} + + +
+
+
+
+